]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java
Add locking for IndexUtils.flushIndexCaches
[simantics/platform.git] / bundles / org.simantics.db.indexing / src / org / simantics / db / indexing / IndexedRelationsSearcherBase.java
index 5df5d68c114d37dc98de59bd6a45100e81dfda3d..dad5ad07b13ea49011ea03d0d70b5a254c62d32c 100644 (file)
@@ -505,7 +505,7 @@ abstract public class IndexedRelationsSearcherBase {
      */
     final IndexSchema      schema;
 
-    Resource         input;
+    final Resource         input;
 
     Path             indexPath;
 
@@ -530,6 +530,14 @@ abstract public class IndexedRelationsSearcherBase {
         this.schema = IndexSchema.readFromRelation(session, relation);
     }
 
+    public Resource getRelation() {
+        return relation;
+    }
+
+    public Resource getInput() {
+        return input;
+    }
+
     Directory getDirectory(Session session) throws IOException {
         return FSDirectory.open(indexPath.toFile());
     }