Skip to content

Commit

Permalink
debug..
Browse files Browse the repository at this point in the history
  • Loading branch information
bleujin committed May 3, 2013
1 parent 93ba5ce commit 06d61ac
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Binary file modified publish/isearcher_3.6.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/net/ion/nsearcher/index/AsyncIndexer.java
Expand Up @@ -53,7 +53,7 @@ public void addAfterHandler(AfterIndexHandler iafter) {
iafters.add(iafter);
}

private void beforeHandle(CollectorEvent event, MyDocument mydoc) {
private void beforeHandle(CollectorEvent event, WriteDocument mydoc) {
for (BeforeIndexHandler before : ibefores) {
before.handleDoc(event, mydoc);
}
Expand Down
3 changes: 2 additions & 1 deletion src/net/ion/nsearcher/index/BeforeIndexHandler.java
@@ -1,10 +1,11 @@
package net.ion.nsearcher.index;

import net.ion.nsearcher.common.MyDocument;
import net.ion.nsearcher.common.WriteDocument;
import net.ion.nsearcher.index.event.CollectorEvent;

public interface BeforeIndexHandler {

public void handleDoc(CollectorEvent event, MyDocument mydoc);
public void handleDoc(CollectorEvent event, WriteDocument mydoc);

}
Expand Up @@ -7,6 +7,7 @@

import net.ion.framework.util.Debug;
import net.ion.nsearcher.common.MyDocument;
import net.ion.nsearcher.common.WriteDocument;
import net.ion.nsearcher.index.BeforeIndexHandler;
import net.ion.nsearcher.index.event.CollectorEvent;
import net.ion.nsearcher.index.event.ICollectorEvent;
Expand All @@ -30,8 +31,8 @@ public void collected(ICollectorEvent event) {
try {


MyDocument[] docs = ((CollectorEvent)event).makeDocument() ;
for (MyDocument doc : docs) {
WriteDocument[] docs = ((CollectorEvent)event).makeDocument() ;
for (WriteDocument doc : docs) {
handleBeforeProcessor((CollectorEvent) event, doc);
count.incrementAndGet() ;
Debug.debug(doc) ;
Expand All @@ -41,7 +42,7 @@ public void collected(ICollectorEvent event) {
}
}

private void handleBeforeProcessor(CollectorEvent event, MyDocument mydoc) {
private void handleBeforeProcessor(CollectorEvent event, WriteDocument mydoc) {
for (BeforeIndexHandler before : ibefores) {
before.handleDoc(event, mydoc);
}
Expand Down

0 comments on commit 06d61ac

Please sign in to comment.