You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/04/04 02:04:53 UTC

[lucy-commits] svn commit: r1088446 - in /incubator/lucy/trunk/core/Lucy/Search: NoMatchMatcher.c NoMatchMatcher.cfh NoMatchQuery.c NoMatchScorer.c NoMatchScorer.cfh

Author: marvin
Date: Mon Apr  4 00:04:53 2011
New Revision: 1088446

URL: http://svn.apache.org/viewvc?rev=1088446&view=rev
Log:
Rename NoMatchScorer to NoMatchMatcher.

Added:
    incubator/lucy/trunk/core/Lucy/Search/NoMatchMatcher.c
      - copied, changed from r1088385, incubator/lucy/trunk/core/Lucy/Search/NoMatchScorer.c
    incubator/lucy/trunk/core/Lucy/Search/NoMatchMatcher.cfh
      - copied, changed from r1088385, incubator/lucy/trunk/core/Lucy/Search/NoMatchScorer.cfh
Removed:
    incubator/lucy/trunk/core/Lucy/Search/NoMatchScorer.c
    incubator/lucy/trunk/core/Lucy/Search/NoMatchScorer.cfh
Modified:
    incubator/lucy/trunk/core/Lucy/Search/NoMatchQuery.c

Copied: incubator/lucy/trunk/core/Lucy/Search/NoMatchMatcher.c (from r1088385, incubator/lucy/trunk/core/Lucy/Search/NoMatchScorer.c)
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/core/Lucy/Search/NoMatchMatcher.c?p2=incubator/lucy/trunk/core/Lucy/Search/NoMatchMatcher.c&p1=incubator/lucy/trunk/core/Lucy/Search/NoMatchScorer.c&r1=1088385&r2=1088446&rev=1088446&view=diff
==============================================================================
--- incubator/lucy/trunk/core/Lucy/Search/NoMatchScorer.c (original)
+++ incubator/lucy/trunk/core/Lucy/Search/NoMatchMatcher.c Mon Apr  4 00:04:53 2011
@@ -14,36 +14,36 @@
  * limitations under the License.
  */
 
-#define C_LUCY_NOMATCHSCORER
+#define C_LUCY_NOMATCHMATCHER
 #include "Lucy/Util/ToolSet.h"
 
-#include "Lucy/Search/NoMatchScorer.h"
+#include "Lucy/Search/NoMatchMatcher.h"
 #include "Lucy/Index/IndexReader.h"
 #include "Lucy/Index/Similarity.h"
 #include "Lucy/Plan/Schema.h"
 
-NoMatchScorer*
-NoMatchScorer_new()
+NoMatchMatcher*
+NoMatchMatcher_new()
 {
-    NoMatchScorer *self = (NoMatchScorer*)VTable_Make_Obj(NOMATCHSCORER);
-    return NoMatchScorer_init(self);
+    NoMatchMatcher *self = (NoMatchMatcher*)VTable_Make_Obj(NOMATCHMATCHER);
+    return NoMatchMatcher_init(self);
 }
 
-NoMatchScorer*
-NoMatchScorer_init(NoMatchScorer *self)
+NoMatchMatcher*
+NoMatchMatcher_init(NoMatchMatcher *self)
 {
-    return (NoMatchScorer*)Matcher_init((Matcher*)self);
+    return (NoMatchMatcher*)Matcher_init((Matcher*)self);
 }   
 
 int32_t
-NoMatchScorer_next(NoMatchScorer* self) 
+NoMatchMatcher_next(NoMatchMatcher* self) 
 {
     UNUSED_VAR(self);
     return 0;
 }
 
 int32_t
-NoMatchScorer_advance(NoMatchScorer* self, int32_t target) 
+NoMatchMatcher_advance(NoMatchMatcher* self, int32_t target) 
 {
     UNUSED_VAR(self);
     UNUSED_VAR(target);

Copied: incubator/lucy/trunk/core/Lucy/Search/NoMatchMatcher.cfh (from r1088385, incubator/lucy/trunk/core/Lucy/Search/NoMatchScorer.cfh)
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/core/Lucy/Search/NoMatchMatcher.cfh?p2=incubator/lucy/trunk/core/Lucy/Search/NoMatchMatcher.cfh&p1=incubator/lucy/trunk/core/Lucy/Search/NoMatchScorer.cfh&r1=1088385&r2=1088446&rev=1088446&view=diff
==============================================================================
--- incubator/lucy/trunk/core/Lucy/Search/NoMatchScorer.cfh (original)
+++ incubator/lucy/trunk/core/Lucy/Search/NoMatchMatcher.cfh Mon Apr  4 00:04:53 2011
@@ -16,19 +16,19 @@
 
 parcel Lucy;
 
-class Lucy::Search::NoMatchScorer inherits Lucy::Search::Matcher {
+class Lucy::Search::NoMatchMatcher inherits Lucy::Search::Matcher {
 
-    inert incremented NoMatchScorer*
+    inert incremented NoMatchMatcher*
     new();
 
-    inert NoMatchScorer*
-    init(NoMatchScorer *self);
+    inert NoMatchMatcher*
+    init(NoMatchMatcher *self);
 
     public int32_t
-    Next(NoMatchScorer* self);
+    Next(NoMatchMatcher* self);
 
     public int32_t
-    Advance(NoMatchScorer* self, int32_t target);
+    Advance(NoMatchMatcher* self, int32_t target);
 }
 
 

Modified: incubator/lucy/trunk/core/Lucy/Search/NoMatchQuery.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/core/Lucy/Search/NoMatchQuery.c?rev=1088446&r1=1088445&r2=1088446&view=diff
==============================================================================
--- incubator/lucy/trunk/core/Lucy/Search/NoMatchQuery.c (original)
+++ incubator/lucy/trunk/core/Lucy/Search/NoMatchQuery.c Mon Apr  4 00:04:53 2011
@@ -21,7 +21,7 @@
 #include "Lucy/Index/SegReader.h"
 #include "Lucy/Index/Similarity.h"
 #include "Lucy/Plan/Schema.h"
-#include "Lucy/Search/NoMatchScorer.h"
+#include "Lucy/Search/NoMatchMatcher.h"
 #include "Lucy/Search/Searcher.h"
 #include "Lucy/Store/InStream.h"
 #include "Lucy/Store/OutStream.h"
@@ -149,7 +149,7 @@ NoMatchCompiler_make_matcher(NoMatchComp
     UNUSED_VAR(self);
     UNUSED_VAR(reader);
     UNUSED_VAR(need_score);
-    return (Matcher*)NoMatchScorer_new();
+    return (Matcher*)NoMatchMatcher_new();
 }