Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: kinosearch: commits

r3733 - in trunk: c_src/KinoSearch/Index perl/lib/KinoSearch/Index

 

 

kinosearch commits RSS feed   Index | Next | Previous | View Threaded


marvin at rectangular

Aug 19, 2008, 7:28 AM

Post #1 of 1 (407 views)
Permalink
r3733 - in trunk: c_src/KinoSearch/Index perl/lib/KinoSearch/Index

Author: creamyg
Date: 2008-08-19 07:28:05 -0700 (Tue, 19 Aug 2008)
New Revision: 3733

Modified:
trunk/c_src/KinoSearch/Index/DocVector.bp
trunk/c_src/KinoSearch/Index/DocVector.c
trunk/c_src/KinoSearch/Index/IndexReader.bp
trunk/c_src/KinoSearch/Index/MultiReader.bp
trunk/c_src/KinoSearch/Index/MultiReader.c
trunk/c_src/KinoSearch/Index/SegReader.bp
trunk/c_src/KinoSearch/Index/SegReader.c
trunk/perl/lib/KinoSearch/Index/DocVector.pm
trunk/perl/lib/KinoSearch/Index/IndexReader.pm
Log:
Eliminate one unnecessary method and rename another; now there aren't any
methods named Get_Xxxxx that return incremented objects.


Modified: trunk/c_src/KinoSearch/Index/DocVector.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/DocVector.bp 2008-08-17 19:41:38 UTC (rev 3732)
+++ trunk/c_src/KinoSearch/Index/DocVector.bp 2008-08-19 14:28:05 UTC (rev 3733)
@@ -31,12 +31,6 @@
ByteBuf*
Field_Buf(DocVector *self, const CharBuf *field);

- /* Return a newly allocated VArray which contains a list of all fields
- * represented in the object.
- */
- incremented VArray*
- Get_Field_Names(DocVector *self);
-
public void
Serialize(DocVector *self, OutStream *outstream);


Modified: trunk/c_src/KinoSearch/Index/DocVector.c
===================================================================
--- trunk/c_src/KinoSearch/Index/DocVector.c 2008-08-17 19:41:38 UTC (rev 3732)
+++ trunk/c_src/KinoSearch/Index/DocVector.c 2008-08-19 14:28:05 UTC (rev 3733)
@@ -73,7 +73,7 @@
}

VArray*
-DocVec_get_field_names(DocVector *self)
+DocVec_field_names(DocVector *self)
{
return Hash_Keys(self->field_bufs);
}

Modified: trunk/c_src/KinoSearch/Index/IndexReader.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/IndexReader.bp 2008-08-17 19:41:38 UTC (rev 3732)
+++ trunk/c_src/KinoSearch/Index/IndexReader.bp 2008-08-19 14:28:05 UTC (rev 3733)
@@ -141,7 +141,7 @@
* segment doc_num start offset.
*/
abstract incremented IntMap*
- Get_Seg_Starts(IndexReader *self);
+ Seg_Starts(IndexReader *self);

/** Return an array of all the SegReaders represented within the
* IndexReader.

Modified: trunk/c_src/KinoSearch/Index/MultiReader.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/MultiReader.bp 2008-08-17 19:41:38 UTC (rev 3732)
+++ trunk/c_src/KinoSearch/Index/MultiReader.bp 2008-08-19 14:28:05 UTC (rev 3733)
@@ -58,7 +58,7 @@
Fetch_Doc_Vec(MultiReader *self, u32_t doc_num);

incremented IntMap*
- Get_Seg_Starts(MultiReader *self);
+ Seg_Starts(MultiReader *self);

incremented VArray*
SegReaders(MultiReader *self);

Modified: trunk/c_src/KinoSearch/Index/MultiReader.c
===================================================================
--- trunk/c_src/KinoSearch/Index/MultiReader.c 2008-08-17 19:41:38 UTC (rev 3732)
+++ trunk/c_src/KinoSearch/Index/MultiReader.c 2008-08-19 14:28:05 UTC (rev 3733)
@@ -185,7 +185,7 @@
}

IntMap*
-MultiReader_get_seg_starts(MultiReader *self)
+MultiReader_seg_starts(MultiReader *self)
{
return REFCOUNT_INC(self->starts);
}

Modified: trunk/c_src/KinoSearch/Index/SegReader.bp
===================================================================
--- trunk/c_src/KinoSearch/Index/SegReader.bp 2008-08-17 19:41:38 UTC (rev 3732)
+++ trunk/c_src/KinoSearch/Index/SegReader.bp 2008-08-19 14:28:05 UTC (rev 3733)
@@ -60,7 +60,7 @@
Fetch_Doc_Vec(SegReader *self, u32_t doc_num);

incremented IntMap*
- Get_Seg_Starts(SegReader *self);
+ Seg_Starts(SegReader *self);

incremented VArray*
SegReaders(SegReader *self);

Modified: trunk/c_src/KinoSearch/Index/SegReader.c
===================================================================
--- trunk/c_src/KinoSearch/Index/SegReader.c 2008-08-17 19:41:38 UTC (rev 3732)
+++ trunk/c_src/KinoSearch/Index/SegReader.c 2008-08-19 14:28:05 UTC (rev 3733)
@@ -145,7 +145,7 @@
}

IntMap*
-SegReader_get_seg_starts(SegReader *self)
+SegReader_seg_starts(SegReader *self)
{
i32_t *ints = CALLOCATE(1, i32_t);
UNUSED_VAR(self);

Modified: trunk/perl/lib/KinoSearch/Index/DocVector.pm
===================================================================
--- trunk/perl/lib/KinoSearch/Index/DocVector.pm 2008-08-17 19:41:38 UTC (rev 3732)
+++ trunk/perl/lib/KinoSearch/Index/DocVector.pm 2008-08-19 14:28:05 UTC (rev 3733)
@@ -8,7 +8,7 @@

{ "KinoSearch::Index::DocVector" => {
bind_methods =>
- [ qw( term_vector get_field_names field_buf add_field_buf ) ],
+ [ qw( term_vector field_buf add_field_buf ) ],
make_constructors => ["new"],
}
}

Modified: trunk/perl/lib/KinoSearch/Index/IndexReader.pm
===================================================================
--- trunk/perl/lib/KinoSearch/Index/IndexReader.pm 2008-08-17 19:41:38 UTC (rev 3732)
+++ trunk/perl/lib/KinoSearch/Index/IndexReader.pm 2008-08-19 14:28:05 UTC (rev 3733)
@@ -51,7 +51,7 @@
posting_list
fetch_doc
fetch_doc_vec
- get_seg_starts
+ seg_starts
segreaders
fetch_sort_cache
close


_______________________________________________
kinosearch-commits mailing list
kinosearch-commits [at] rectangular
http://www.rectangular.com/mailman/listinfo/kinosearch-commits

kinosearch commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.