Merge lp:~zorba-coders/zorba/feature-ft_module into lp:zorba

Proposed by Paul J. Lucas
Status: Merged
Approved by: Matthias Brantner
Approved revision: no longer in the source branch.
Merged at revision: 10852
Proposed branch: lp:~zorba-coders/zorba/feature-ft_module
Merge into: lp:zorba
Diff against target: 455 lines (+76/-76)
16 files modified
doc/zorba/ft_tokenizer.dox (+1/-1)
modules/com/zorba-xquery/www/modules/full-text.xq (+8/-8)
src/functions/func_ft_module_impl.cpp (+8/-8)
src/functions/func_ft_module_impl.h (+3/-3)
src/functions/function_consts.h (+2/-2)
src/runtime/full_text/ft_module_impl.cpp (+15/-14)
src/runtime/full_text/pregenerated/ft_module.cpp (+15/-15)
src/runtime/full_text/pregenerated/ft_module.h (+9/-9)
src/runtime/spec/full_text/ft_module.xml (+1/-1)
src/runtime/visitors/pregenerated/planiter_visitor.h (+3/-3)
src/runtime/visitors/pregenerated/printer_visitor.cpp (+5/-5)
src/runtime/visitors/pregenerated/printer_visitor.h (+2/-2)
test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-1.xq (+1/-1)
test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-2.xq (+1/-2)
test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-3.xq (+1/-1)
test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-4.xq (+1/-1)
To merge this branch: bzr merge lp:~zorba-coders/zorba/feature-ft_module
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Paul J. Lucas Approve
Review via email: mp+106235@code.launchpad.net

Commit message

Getting in another public API change for 2.5 for the full-text module since now's the time to do it. Renamed tokenize() to tokenize-node() for 2 reasons:

1. There already exists tokenize-string() and therefore tokenize-node() is a better name than just plain tokenize().

2. The forthcoming addition of the black & white tokenization function will most likely be called tokenize-nodes() -- plural.

Description of the change

Getting in another public API change for 2.5 for the full-text module since now's the time to do it. Renamed tokenize() to tokenize-node() for 2 reasons:

1. There already exists tokenize-string() and therefore tokenize-node() is a better name than just plain tokenize().

2. The forthcoming addition of the black & white tokenization function will most likely be called tokenize-nodes() -- plural.

To post a comment you must log in.
Revision history for this message
Paul J. Lucas (paul-lucas) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~zorba-coders/zorba/feature-ft_module into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:274 (message):
  Validation queue job feature-ft_module-2012-05-17T21-57-06.963Z is
  finished. The final status was:

  1 tests did not succeed - changes not commited.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

Revision history for this message
Matthias Brantner (matthias-brantner) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job feature-ft_module-2012-05-18T03-45-08.316Z is finished. The final status was:

All tests succeeded!

10852. By Paul J. Lucas

Getting in another public API change for 2.5 for the full-text module since now's the time to do it. Renamed tokenize() to tokenize-node() for 2 reasons:

1. There already exists tokenize-string() and therefore tokenize-node() is a better name than just plain tokenize().

2. The forthcoming addition of the black & white tokenization function will most likely be called tokenize-nodes() -- plural. Approved: Matthias Brantner, Paul J. Lucas

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'doc/zorba/ft_tokenizer.dox'
--- doc/zorba/ft_tokenizer.dox 2012-05-16 01:01:06 +0000
+++ doc/zorba/ft_tokenizer.dox 2012-05-17 22:48:19 +0000
@@ -152,7 +152,7 @@
152 </tr>152 </tr>
153</table>153</table>
154154
155A complete implementation of \c %tokenize() is non-trivial155A complete implementation of \c %tokenize_string() is non-trivial
156and therefore an example is beyond the scope of this API documentation.156and therefore an example is beyond the scope of this API documentation.
157However,157However,
158the things a tokenizer should take into consideration include:158the things a tokenizer should take into consideration include:
159159
=== modified file 'modules/com/zorba-xquery/www/modules/full-text.xq'
--- modules/com/zorba-xquery/www/modules/full-text.xq 2012-05-08 23:49:22 +0000
+++ modules/com/zorba-xquery/www/modules/full-text.xq 2012-05-17 22:48:19 +0000
@@ -762,7 +762,7 @@
762 as xs:string+ external;762 as xs:string+ external;
763763
764(:~764(:~
765 : Tokenizes the given document.765 : Tokenizes the given node and all of its descendants.
766 :766 :
767 : @param $node The node to tokenize.767 : @param $node The node to tokenize.
768 : @param $lang The default768 : @param $lang The default
@@ -770,13 +770,13 @@
770 : of <code>$node</code>.770 : of <code>$node</code>.
771 : @return a (possibly empty) sequence of tokens.771 : @return a (possibly empty) sequence of tokens.
772 : @error err:FTST0009 if <code>$lang</code> is not supported in general.772 : @error err:FTST0009 if <code>$lang</code> is not supported in general.
773 : @example test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-1.xq773 : @example test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-1.xq
774 :)774 :)
775declare function ft:tokenize( $node as node(), $lang as xs:language )775declare function ft:tokenize-node( $node as node(), $lang as xs:language )
776 as element(ft-schema:token)* external;776 as element(ft-schema:token)* external;
777777
778(:~778(:~
779 : Tokenizes the given document.779 : Tokenizes the given node and all of its descendants.
780 :780 :
781 : @param $node The node to tokenize.781 : @param $node The node to tokenize.
782 : The document's default782 : The document's default
@@ -785,11 +785,11 @@
785 : @return a (possibly empty) sequence of tokens.785 : @return a (possibly empty) sequence of tokens.
786 : @error err:FTST0009 if <code>ft:current-lang()</code> is not supported in786 : @error err:FTST0009 if <code>ft:current-lang()</code> is not supported in
787 : general.787 : general.
788 : @example test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-2.xq788 : @example test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-2.xq
789 : @example test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-3.xq789 : @example test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-3.xq
790 : @example test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-4.xq790 : @example test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-4.xq
791 :)791 :)
792declare function ft:tokenize( $node as node() )792declare function ft:tokenize-node( $node as node() )
793 as element(ft-schema:token)* external;793 as element(ft-schema:token)* external;
794794
795(:~795(:~
796796
=== modified file 'src/functions/func_ft_module_impl.cpp'
--- src/functions/func_ft_module_impl.cpp 2012-05-15 21:13:21 +0000
+++ src/functions/func_ft_module_impl.cpp 2012-05-17 22:48:19 +0000
@@ -25,14 +25,14 @@
2525
26#ifndef ZORBA_NO_FULL_TEXT26#ifndef ZORBA_NO_FULL_TEXT
2727
28PlanIter_t full_text_tokenize::codegen(28PlanIter_t full_text_tokenize_node::codegen(
29 CompilerCB*,29 CompilerCB*,
30 static_context* sctx,30 static_context* sctx,
31 const QueryLoc& loc,31 const QueryLoc& loc,
32 std::vector<PlanIter_t>& argv,32 std::vector<PlanIter_t>& argv,
33 expr& ann) const33 expr& ann) const
34{34{
35 return new TokenizeIterator(sctx, loc, argv);35 return new TokenizeNodeIterator(sctx, loc, argv);
36}36}
3737
3838
@@ -90,20 +90,20 @@
90 false);90 false);
91 {91 {
92 DECL_WITH_KIND(sctx,92 DECL_WITH_KIND(sctx,
93 full_text_tokenize,93 full_text_tokenize_node,
94 (createQName(FT_MODULE_NS, "", "tokenize"),94 (createQName(FT_MODULE_NS, "", "tokenize-node"),
95 GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,95 GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,
96 tokenize_return_type),96 tokenize_return_type),
97 FunctionConsts::FULL_TEXT_TOKENIZE_1);97 FunctionConsts::FULL_TEXT_TOKENIZE_NODE_1);
98 }98 }
99 {99 {
100 DECL_WITH_KIND(sctx,100 DECL_WITH_KIND(sctx,
101 full_text_tokenize,101 full_text_tokenize_node,
102 (createQName( FT_MODULE_NS, "", "tokenize"),102 (createQName( FT_MODULE_NS, "", "tokenize-node"),
103 GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,103 GENV_TYPESYSTEM.ANY_NODE_TYPE_ONE,
104 GENV_TYPESYSTEM.LANGUAGE_TYPE_ONE,104 GENV_TYPESYSTEM.LANGUAGE_TYPE_ONE,
105 tokenize_return_type),105 tokenize_return_type),
106 FunctionConsts::FULL_TEXT_TOKENIZE_2);106 FunctionConsts::FULL_TEXT_TOKENIZE_NODE_2);
107 }107 }
108108
109 xqtref_t tokenizer_properties_return_type =109 xqtref_t tokenizer_properties_return_type =
110110
=== modified file 'src/functions/func_ft_module_impl.h'
--- src/functions/func_ft_module_impl.h 2012-05-09 20:40:03 +0000
+++ src/functions/func_ft_module_impl.h 2012-05-17 22:48:19 +0000
@@ -30,11 +30,11 @@
30///////////////////////////////////////////////////////////////////////////////30///////////////////////////////////////////////////////////////////////////////
3131
32//full-text:tokenize32//full-text:tokenize
33class full_text_tokenize : public function33class full_text_tokenize_node : public function
34{34{
35public:35public:
36 full_text_tokenize(const signature& sig, FunctionConsts::FunctionKind kind)36 full_text_tokenize_node(const signature& sig,
37 : 37 FunctionConsts::FunctionKind kind) :
38 function(sig, kind)38 function(sig, kind)
39 {39 {
4040
4141
=== modified file 'src/functions/function_consts.h'
--- src/functions/function_consts.h 2012-05-08 23:49:22 +0000
+++ src/functions/function_consts.h 2012-05-17 22:48:19 +0000
@@ -229,8 +229,8 @@
229 FULL_TEXT_CURRENT_COMPARE_OPTIONS_0,229 FULL_TEXT_CURRENT_COMPARE_OPTIONS_0,
230 FULL_TEXT_TOKENIZER_PROPERTIES_1,230 FULL_TEXT_TOKENIZER_PROPERTIES_1,
231 FULL_TEXT_TOKENIZER_PROPERTIES_0,231 FULL_TEXT_TOKENIZER_PROPERTIES_0,
232 FULL_TEXT_TOKENIZE_2,232 FULL_TEXT_TOKENIZE_NODE_2,
233 FULL_TEXT_TOKENIZE_1,233 FULL_TEXT_TOKENIZE_NODE_1,
234#endif234#endif
235235
236#include "functions/function_enum.h"236#include "functions/function_enum.h"
237237
=== modified file 'src/runtime/full_text/ft_module_impl.cpp'
--- src/runtime/full_text/ft_module_impl.cpp 2012-05-17 15:21:43 +0000
+++ src/runtime/full_text/ft_module_impl.cpp 2012-05-17 22:48:19 +0000
@@ -528,14 +528,15 @@
528528
529///////////////////////////////////////////////////////////////////////////////529///////////////////////////////////////////////////////////////////////////////
530530
531TokenizeIterator::TokenizeIterator( static_context *sctx, QueryLoc const &loc,531TokenizeNodeIterator::TokenizeNodeIterator( static_context *sctx,
532 std::vector<PlanIter_t>& children ) :532 QueryLoc const &loc,
533 NaryBaseIterator<TokenizeIterator,TokenizeIteratorState>(sctx, loc, children)533 std::vector<PlanIter_t>& children ):
534 NaryBaseIterator<TokenizeNodeIterator,TokenizeNodeIteratorState>(sctx, loc, children)
534{535{
535 initMembers();536 initMembers();
536}537}
537538
538void TokenizeIterator::initMembers() {539void TokenizeNodeIterator::initMembers() {
539 GENV_ITEMFACTORY->createQName(540 GENV_ITEMFACTORY->createQName(
540 token_qname_, static_context::ZORBA_FULL_TEXT_FN_NS, "", "token" );541 token_qname_, static_context::ZORBA_FULL_TEXT_FN_NS, "", "token" );
541542
@@ -555,8 +556,8 @@
555 ref_qname_, "", "", "node-ref" );556 ref_qname_, "", "", "node-ref" );
556}557}
557558
558bool TokenizeIterator::nextImpl( store::Item_t &result,559bool TokenizeNodeIterator::nextImpl( store::Item_t &result,
559 PlanState &plan_state ) const {560 PlanState &plan_state ) const {
560 store::Item_t node_name, attr_node;561 store::Item_t node_name, attr_node;
561 zstring base_uri;562 zstring base_uri;
562 store::Item_t item;563 store::Item_t item;
@@ -567,8 +568,8 @@
567 store::Item_t type_name;568 store::Item_t type_name;
568 zstring value_string;569 zstring value_string;
569570
570 TokenizeIteratorState *state;571 TokenizeNodeIteratorState *state;
571 DEFAULT_STACK_INIT( TokenizeIteratorState, state, plan_state );572 DEFAULT_STACK_INIT( TokenizeNodeIteratorState, state, plan_state );
572573
573 if ( consumeNext( state->doc_item_, theChildren[0], plan_state ) ) {574 if ( consumeNext( state->doc_item_, theChildren[0], plan_state ) ) {
574 if ( theChildren.size() > 1 ) {575 if ( theChildren.size() > 1 ) {
@@ -651,19 +652,19 @@
651 STACK_END( state );652 STACK_END( state );
652}653}
653654
654void TokenizeIterator::resetImpl( PlanState &plan_state ) const {655void TokenizeNodeIterator::resetImpl( PlanState &plan_state ) const {
655 NaryBaseIterator<TokenizeIterator,TokenizeIteratorState>::656 NaryBaseIterator<TokenizeNodeIterator,TokenizeNodeIteratorState>::
656 resetImpl( plan_state );657 resetImpl( plan_state );
657 TokenizeIteratorState *const state =658 TokenizeNodeIteratorState *const state =
658 StateTraitsImpl<TokenizeIteratorState>::getState(659 StateTraitsImpl<TokenizeNodeIteratorState>::getState(
659 plan_state, this->theStateOffset660 plan_state, this->theStateOffset
660 );661 );
661 state->doc_tokens_->reset();662 state->doc_tokens_->reset();
662}663}
663664
664void TokenizeIterator::serialize( serialization::Archiver &ar ) {665void TokenizeNodeIterator::serialize( serialization::Archiver &ar ) {
665 serialize_baseclass(666 serialize_baseclass(
666 ar, (NaryBaseIterator<TokenizeIterator,TokenizeIteratorState>*)this667 ar, (NaryBaseIterator<TokenizeNodeIterator,TokenizeNodeIteratorState>*)this
667 );668 );
668 if ( !ar.is_serializing_out() )669 if ( !ar.is_serializing_out() )
669 initMembers();670 initMembers();
670671
=== modified file 'src/runtime/full_text/pregenerated/ft_module.cpp'
--- src/runtime/full_text/pregenerated/ft_module.cpp 2012-05-08 23:49:22 +0000
+++ src/runtime/full_text/pregenerated/ft_module.cpp 2012-05-17 22:48:19 +0000
@@ -295,12 +295,12 @@
295295
296#endif296#endif
297#ifndef ZORBA_NO_FULL_TEXT297#ifndef ZORBA_NO_FULL_TEXT
298// <TokenizeIterator>298// <TokenizeNodeIterator>
299TokenizeIterator::class_factory<TokenizeIterator>299TokenizeNodeIterator::class_factory<TokenizeNodeIterator>
300TokenizeIterator::g_class_factory;300TokenizeNodeIterator::g_class_factory;
301301
302302
303void TokenizeIterator::accept(PlanIterVisitor& v) const {303void TokenizeNodeIterator::accept(PlanIterVisitor& v) const {
304 v.beginVisit(*this);304 v.beginVisit(*this);
305305
306 std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();306 std::vector<PlanIter_t>::const_iterator lIter = theChildren.begin();
@@ -312,17 +312,17 @@
312 v.endVisit(*this);312 v.endVisit(*this);
313}313}
314314
315TokenizeIterator::~TokenizeIterator() {}315TokenizeNodeIterator::~TokenizeNodeIterator() {}
316316
317TokenizeIteratorState::TokenizeIteratorState() {}317TokenizeNodeIteratorState::TokenizeNodeIteratorState() {}
318318
319TokenizeIteratorState::~TokenizeIteratorState() {}319TokenizeNodeIteratorState::~TokenizeNodeIteratorState() {}
320320
321321
322void TokenizeIteratorState::reset(PlanState& planState) {322void TokenizeNodeIteratorState::reset(PlanState& planState) {
323 PlanIteratorState::reset(planState);323 PlanIteratorState::reset(planState);
324}324}
325// </TokenizeIterator>325// </TokenizeNodeIterator>
326326
327#endif327#endif
328#ifndef ZORBA_NO_FULL_TEXT328#ifndef ZORBA_NO_FULL_TEXT
329329
=== modified file 'src/runtime/full_text/pregenerated/ft_module.h'
--- src/runtime/full_text/pregenerated/ft_module.h 2012-05-08 23:49:22 +0000
+++ src/runtime/full_text/pregenerated/ft_module.h 2012-05-17 22:48:19 +0000
@@ -455,20 +455,20 @@
455 * 455 *
456 * Author: 456 * Author:
457 */457 */
458class TokenizeIteratorState : public PlanIteratorState458class TokenizeNodeIteratorState : public PlanIteratorState
459{459{
460public:460public:
461 store::Item_t doc_item_; //461 store::Item_t doc_item_; //
462 FTTokenIterator_t doc_tokens_; //462 FTTokenIterator_t doc_tokens_; //
463463
464 TokenizeIteratorState();464 TokenizeNodeIteratorState();
465465
466 ~TokenizeIteratorState();466 ~TokenizeNodeIteratorState();
467467
468 void reset(PlanState&);468 void reset(PlanState&);
469};469};
470470
471class TokenizeIterator : public NaryBaseIterator<TokenizeIterator, TokenizeIteratorState>471class TokenizeNodeIterator : public NaryBaseIterator<TokenizeNodeIterator, TokenizeNodeIteratorState>
472{ 472{
473protected:473protected:
474 store::Item_t token_qname_; //474 store::Item_t token_qname_; //
@@ -478,20 +478,20 @@
478 store::Item_t value_qname_; //478 store::Item_t value_qname_; //
479 store::Item_t ref_qname_; //479 store::Item_t ref_qname_; //
480public:480public:
481 SERIALIZABLE_CLASS(TokenizeIterator);481 SERIALIZABLE_CLASS(TokenizeNodeIterator);
482482
483 SERIALIZABLE_CLASS_CONSTRUCTOR2T(TokenizeIterator,483 SERIALIZABLE_CLASS_CONSTRUCTOR2T(TokenizeNodeIterator,
484 NaryBaseIterator<TokenizeIterator, TokenizeIteratorState>);484 NaryBaseIterator<TokenizeNodeIterator, TokenizeNodeIteratorState>);
485485
486 void serialize( ::zorba::serialization::Archiver& ar);486 void serialize( ::zorba::serialization::Archiver& ar);
487487
488 TokenizeIterator(488 TokenizeNodeIterator(
489 static_context* sctx,489 static_context* sctx,
490 const QueryLoc& loc,490 const QueryLoc& loc,
491 std::vector<PlanIter_t>& children)491 std::vector<PlanIter_t>& children)
492 ;492 ;
493493
494 virtual ~TokenizeIterator();494 virtual ~TokenizeNodeIterator();
495495
496public:496public:
497 void initMembers();497 void initMembers();
498498
=== modified file 'src/runtime/spec/full_text/ft_module.xml'
--- src/runtime/spec/full_text/ft_module.xml 2012-05-08 23:49:22 +0000
+++ src/runtime/spec/full_text/ft_module.xml 2012-05-17 22:48:19 +0000
@@ -167,7 +167,7 @@
167 </zorba:state>167 </zorba:state>
168</zorba:iterator>168</zorba:iterator>
169169
170<zorba:iterator name="TokenizeIterator"170<zorba:iterator name="TokenizeNodeIterator"
171 generateResetImpl="true"171 generateResetImpl="true"
172 generateSerialize="false"172 generateSerialize="false"
173 generateConstructor="false"173 generateConstructor="false"
174174
=== modified file 'src/runtime/visitors/pregenerated/planiter_visitor.h'
--- src/runtime/visitors/pregenerated/planiter_visitor.h 2012-05-08 23:49:22 +0000
+++ src/runtime/visitors/pregenerated/planiter_visitor.h 2012-05-17 22:48:19 +0000
@@ -227,7 +227,7 @@
227 class ThesaurusLookupIterator;227 class ThesaurusLookupIterator;
228#endif228#endif
229#ifndef ZORBA_NO_FULL_TEXT229#ifndef ZORBA_NO_FULL_TEXT
230 class TokenizeIterator;230 class TokenizeNodeIterator;
231#endif231#endif
232#ifndef ZORBA_NO_FULL_TEXT232#ifndef ZORBA_NO_FULL_TEXT
233 class TokenizerPropertiesIterator;233 class TokenizerPropertiesIterator;
@@ -951,8 +951,8 @@
951 virtual void endVisit ( const ThesaurusLookupIterator& ) = 0;951 virtual void endVisit ( const ThesaurusLookupIterator& ) = 0;
952#endif952#endif
953#ifndef ZORBA_NO_FULL_TEXT953#ifndef ZORBA_NO_FULL_TEXT
954 virtual void beginVisit ( const TokenizeIterator& ) = 0;954 virtual void beginVisit ( const TokenizeNodeIterator& ) = 0;
955 virtual void endVisit ( const TokenizeIterator& ) = 0;955 virtual void endVisit ( const TokenizeNodeIterator& ) = 0;
956#endif956#endif
957#ifndef ZORBA_NO_FULL_TEXT957#ifndef ZORBA_NO_FULL_TEXT
958 virtual void beginVisit ( const TokenizerPropertiesIterator& ) = 0;958 virtual void beginVisit ( const TokenizerPropertiesIterator& ) = 0;
959959
=== modified file 'src/runtime/visitors/pregenerated/printer_visitor.cpp'
--- src/runtime/visitors/pregenerated/printer_visitor.cpp 2012-05-08 23:49:22 +0000
+++ src/runtime/visitors/pregenerated/printer_visitor.cpp 2012-05-17 22:48:19 +0000
@@ -1412,18 +1412,18 @@
14121412
1413#endif1413#endif
1414#ifndef ZORBA_NO_FULL_TEXT1414#ifndef ZORBA_NO_FULL_TEXT
1415// <TokenizeIterator>1415// <TokenizeNodeIterator>
1416void PrinterVisitor::beginVisit ( const TokenizeIterator& a) {1416void PrinterVisitor::beginVisit ( const TokenizeNodeIterator& a) {
1417 thePrinter.startBeginVisit("TokenizeIterator", ++theId);1417 thePrinter.startBeginVisit("TokenizeNodeIterator", ++theId);
1418 printCommons( &a, theId );1418 printCommons( &a, theId );
1419 thePrinter.endBeginVisit( theId );1419 thePrinter.endBeginVisit( theId );
1420}1420}
14211421
1422void PrinterVisitor::endVisit ( const TokenizeIterator& ) {1422void PrinterVisitor::endVisit ( const TokenizeNodeIterator& ) {
1423 thePrinter.startEndVisit();1423 thePrinter.startEndVisit();
1424 thePrinter.endEndVisit();1424 thePrinter.endEndVisit();
1425}1425}
1426// </TokenizeIterator>1426// </TokenizeNodeIterator>
14271427
1428#endif1428#endif
1429#ifndef ZORBA_NO_FULL_TEXT1429#ifndef ZORBA_NO_FULL_TEXT
14301430
=== modified file 'src/runtime/visitors/pregenerated/printer_visitor.h'
--- src/runtime/visitors/pregenerated/printer_visitor.h 2012-05-08 23:49:22 +0000
+++ src/runtime/visitors/pregenerated/printer_visitor.h 2012-05-17 22:48:19 +0000
@@ -348,8 +348,8 @@
348#endif348#endif
349349
350#ifndef ZORBA_NO_FULL_TEXT350#ifndef ZORBA_NO_FULL_TEXT
351 void beginVisit( const TokenizeIterator& );351 void beginVisit( const TokenizeNodeIterator& );
352 void endVisit ( const TokenizeIterator& );352 void endVisit ( const TokenizeNodeIterator& );
353#endif353#endif
354354
355#ifndef ZORBA_NO_FULL_TEXT355#ifndef ZORBA_NO_FULL_TEXT
356356
=== renamed file 'test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-1.xml.res' => 'test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-node-1.xml.res'
=== renamed file 'test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-2.xml.res' => 'test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-node-2.xml.res'
=== renamed file 'test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-3.xml.res' => 'test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-node-3.xml.res'
=== renamed file 'test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-4.xml.res' => 'test/rbkt/ExpQueryResults/zorba/fulltext/ft-module-tokenize-node-4.xml.res'
=== renamed file 'test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-1.xq' => 'test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-1.xq'
--- test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-1.xq 2012-05-08 17:24:54 +0000
+++ test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-1.xq 2012-05-17 22:48:19 +0000
@@ -2,7 +2,7 @@
2import schema namespace fts = "http://www.zorba-xquery.com/modules/full-text";2import schema namespace fts = "http://www.zorba-xquery.com/modules/full-text";
33
4let $doc := <msg>hello, world</msg>4let $doc := <msg>hello, world</msg>
5let $tokens := ft:tokenize( $doc, xs:language("en") )5let $tokens := ft:tokenize-node( $doc, xs:language("en") )
6let $t1 := validate { $tokens[1] }6let $t1 := validate { $tokens[1] }
7let $t2 := validate { $tokens[2] }7let $t2 := validate { $tokens[2] }
88
99
=== renamed file 'test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-2.xq' => 'test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-2.xq'
--- test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-2.xq 2012-05-05 11:37:42 +0000
+++ test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-2.xq 2012-05-17 22:48:19 +0000
@@ -1,9 +1,8 @@
1import module namespace ft = "http://www.zorba-xquery.com/modules/full-text";1import module namespace ft = "http://www.zorba-xquery.com/modules/full-text";
2
3import schema namespace fts = "http://www.zorba-xquery.com/modules/full-text";2import schema namespace fts = "http://www.zorba-xquery.com/modules/full-text";
43
5let $doc := <msg xml:lang="es">hola, mundo</msg>4let $doc := <msg xml:lang="es">hola, mundo</msg>
6let $tokens := ft:tokenize( $doc )5let $tokens := ft:tokenize-node( $doc )
7let $t1 := validate { $tokens[1] }6let $t1 := validate { $tokens[1] }
8let $t2 := validate { $tokens[2] }7let $t2 := validate { $tokens[2] }
98
109
=== renamed file 'test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-3.xq' => 'test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-3.xq'
--- test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-3.xq 2012-05-05 16:28:22 +0000
+++ test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-3.xq 2012-05-17 22:48:19 +0000
@@ -4,7 +4,7 @@
4import schema namespace fts = "http://www.zorba-xquery.com/modules/full-text";4import schema namespace fts = "http://www.zorba-xquery.com/modules/full-text";
55
6let $x := <p xml:lang="en">Houston, we have a <em>problem</em>!</p>6let $x := <p xml:lang="en">Houston, we have a <em>problem</em>!</p>
7let $tokens := ft:tokenize( $x )7let $tokens := ft:tokenize-node( $x )
8let $node-ref := (validate { $tokens[5] })/@node-ref8let $node-ref := (validate { $tokens[5] })/@node-ref
9let $node := ref:node-by-reference( $node-ref )9let $node := ref:node-by-reference( $node-ref )
10return $node instance of text()10return $node instance of text()
1111
=== renamed file 'test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-4.xq' => 'test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-4.xq'
--- test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-4.xq 2012-05-05 16:28:22 +0000
+++ test/rbkt/Queries/zorba/fulltext/ft-module-tokenize-node-4.xq 2012-05-17 22:48:19 +0000
@@ -4,7 +4,7 @@
4import schema namespace fts = "http://www.zorba-xquery.com/modules/full-text";4import schema namespace fts = "http://www.zorba-xquery.com/modules/full-text";
55
6let $x := <msg xml:lang="en" content="Houston, we have a problem!"/>6let $x := <msg xml:lang="en" content="Houston, we have a problem!"/>
7let $tokens := ft:tokenize( $x/@content )7let $tokens := ft:tokenize-node( $x/@content )
8let $node-ref := (validate { $tokens[5] }) /@node-ref8let $node-ref := (validate { $tokens[5] }) /@node-ref
9let $node := ref:node-by-reference( $node-ref )9let $node := ref:node-by-reference( $node-ref )
10return $node instance of attribute(content)10return $node instance of attribute(content)

Subscribers

People subscribed via source and target branches