Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/java/fr/inria/corese/core/Graph.java
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,10 @@ public EdgeManagerIndexer getIndex() {
return getSubjectIndex();
}

public int getIndexSize() {
return getIndex().size();
}

void startUpdate() {
}

Expand Down
3 changes: 1 addition & 2 deletions src/main/java/fr/inria/corese/core/query/ProducerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import fr.inria.corese.core.Graph;
import fr.inria.corese.core.Index;
import fr.inria.corese.core.api.DataBroker;
import fr.inria.corese.core.index.EdgeManagerIndexer;
import fr.inria.corese.core.kgram.api.core.*;
import fr.inria.corese.core.kgram.api.query.Environment;
import fr.inria.corese.core.kgram.api.query.Matcher;
Expand Down Expand Up @@ -902,7 +901,7 @@ public int getSize(int type) {
case ALL:
return this.getGraph().size();
case PREDICATE:
return this.getGraph().getIndex().size();
return this.getGraph().getIndexSize();
// to do for SUBJECT | OBJECT
// for the moment, cannot get these values directIProducerQP
case SUBJECT:
Expand Down