import org.simantics.db.exception.DatabaseException;
import org.simantics.db.layer0.adapter.GenericRelation;
import org.simantics.utils.datastructures.Pair;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
/**
* @author Tuukka Lehtonen
*/
public class IndexedRelationsMemorySearcher extends IndexedRelationsSearcherBase {
+ private static final Logger LOGGER = LoggerFactory.getLogger(IndexedRelationsMemorySearcher.class);
+
final IndexedRelationsSearcher backend;
final GenericRelation r;
@Override
Directory getDirectory(Session session) throws IOException {
MemoryIndexing mem = MemoryIndexing.getInstance(session);
- String path = indexPath.getAbsolutePath();
+ String path = indexPath.toAbsolutePath().toString();
return mem.getDirectory(path, Queries.getAnalyzer());
}
@Override
Throwable bestEffortClear(IProgressMonitor monitor, Session session) {
-
- setProblem(null);
-
MemoryIndexing mem = MemoryIndexing.getInstance(session);
changed.clear();
- String path = indexPath.getAbsolutePath();
+ String path = indexPath.toAbsolutePath().toString();
mem.remove(path);
return null;
protected boolean requireChangeInfoOnReplace() {
return false;
}
+
+ @Override
+ protected Logger getLogger() {
+ return LOGGER;
+ }
}