Add information to execution plan toString() (filter clusters on index search)
@@ -5,8 +5,10 @@ import com.orientechnologies.orient.core.command.OCommandContext;
import com.orientechnologies.orient.core.db.record.OIdentifiable;
import com.orientechnologies.orient.core.id.ORID;
+import java.util.Arrays;
import java.util.Map;
import java.util.Optional;
+import java.util.stream.Collectors;
/**
* Created by luigidellaquila on 16/03/17.
@@ -161,6 +163,13 @@ public class GetValueFromIndexEntryStep extends AbstractExecutionStep {
if (profilingEnabled) {
result += " (" + getCostFormatted() + ")";
}
+ if (filterClusterIds != null) {
+ result += "\n";
+ result += spaces;
+ result += " filter clusters [";
+ result += Arrays.asList(filterClusterIds).stream().map(x -> "" + x).collect(Collectors.joining(","));
+ result += "]";
+ }
return result;
}
