You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2012/02/10 11:45:16 UTC
[lucy-commits] svn commit: r1242730 - in /incubator/lucy/trunk: core/Lucy/Index/Indexer.c
core/Lucy/Index/Indexer.cfh perl/buildlib/Lucy/Build/Binding/Index.pm
Author: nwellnhof
Date: Fri Feb 10 10:45:16 2012
New Revision: 1242730
URL: http://svn.apache.org/viewvc?rev=1242730&view=rev
Log:
Add schema accessor to Indexer
Modified:
incubator/lucy/trunk/core/Lucy/Index/Indexer.c
incubator/lucy/trunk/core/Lucy/Index/Indexer.cfh
incubator/lucy/trunk/perl/buildlib/Lucy/Build/Binding/Index.pm
Modified: incubator/lucy/trunk/core/Lucy/Index/Indexer.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/core/Lucy/Index/Indexer.c?rev=1242730&r1=1242729&r2=1242730&view=diff
==============================================================================
--- incubator/lucy/trunk/core/Lucy/Index/Indexer.c (original)
+++ incubator/lucy/trunk/core/Lucy/Index/Indexer.c Fri Feb 10 10:45:16 2012
@@ -554,6 +554,11 @@ Indexer_commit(Indexer *self) {
S_release_write_lock(self);
}
+Schema*
+Indexer_get_schema(Indexer *self) {
+ return self->schema;
+}
+
SegWriter*
Indexer_get_seg_writer(Indexer *self) {
return self->seg_writer;
Modified: incubator/lucy/trunk/core/Lucy/Index/Indexer.cfh
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/core/Lucy/Index/Indexer.cfh?rev=1242730&r1=1242729&r2=1242730&view=diff
==============================================================================
--- incubator/lucy/trunk/core/Lucy/Index/Indexer.cfh (original)
+++ incubator/lucy/trunk/core/Lucy/Index/Indexer.cfh Fri Feb 10 10:45:16 2012
@@ -134,6 +134,11 @@ class Lucy::Index::Indexer inherits Lucy
public void
Prepare_Commit(Indexer *self);
+ /** Accessor for schema.
+ */
+ public Schema*
+ Get_Schema(Indexer *self);
+
/** Accessor for seg_writer member var.
*/
public SegWriter*
Modified: incubator/lucy/trunk/perl/buildlib/Lucy/Build/Binding/Index.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/perl/buildlib/Lucy/Build/Binding/Index.pm?rev=1242730&r1=1242729&r2=1242730&view=diff
==============================================================================
--- incubator/lucy/trunk/perl/buildlib/Lucy/Build/Binding/Index.pm (original)
+++ incubator/lucy/trunk/perl/buildlib/Lucy/Build/Binding/Index.pm Fri Feb 10 10:45:16 2012
@@ -508,6 +508,7 @@ sub bind_indexer {
Prepare_Commit
Delete_By_Term
Delete_By_Query
+ Get_Schema
);
my @bound = @exposed;