2010-09-22 19:04:10 +02:00
|
|
|
package com.google.refine.browsing;
|
2010-05-05 01:24:48 +02:00
|
|
|
|
2010-09-22 19:04:10 +02:00
|
|
|
import com.google.refine.model.Project;
|
|
|
|
import com.google.refine.model.Row;
|
2010-05-05 01:24:48 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface for visiting rows one by one. The rows visited are only those that match some
|
2010-05-20 02:13:19 +02:00
|
|
|
* particular criteria, such as facets' constraints.
|
2010-05-05 01:24:48 +02:00
|
|
|
*/
|
|
|
|
public interface RowVisitor {
|
2010-05-21 00:10:34 +02:00
|
|
|
public void start(Project project); // called before any visit() call
|
|
|
|
|
2010-05-05 01:24:48 +02:00
|
|
|
public boolean visit(
|
|
|
|
Project project,
|
|
|
|
int rowIndex, // zero-based row index
|
2010-05-20 02:13:19 +02:00
|
|
|
Row row
|
2010-05-05 01:24:48 +02:00
|
|
|
);
|
2010-05-21 00:10:34 +02:00
|
|
|
|
|
|
|
public void end(Project project); // called after all visit() calls
|
2010-05-05 01:24:48 +02:00
|
|
|
}
|