Skip to content

Commit 8494e8e

Browse files
committed
fixes after merging
1 parent 868dd4b commit 8494e8e

5 files changed

Lines changed: 272 additions & 90 deletions

File tree

core/queryalgebra/evaluation/src/main/java/org/eclipse/rdf4j/query/algebra/evaluation/iterator/PathIteration.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import java.util.function.Predicate;
2121

2222
import org.eclipse.rdf4j.collection.factory.api.CollectionFactory;
23+
import org.eclipse.rdf4j.common.annotation.InternalUseOnly;
2324
import org.eclipse.rdf4j.common.iteration.CloseableIteration;
2425
import org.eclipse.rdf4j.common.iteration.LookAheadIteration;
2526
import org.eclipse.rdf4j.model.Value;
@@ -130,7 +131,8 @@ public PathIteration(EvaluationStrategy strategy, Scope scope, Var startVar,
130131
* @param s the name of the variable to see if it is in the bindingset
131132
* @return the value of the start or end or if asked for a different field a null.
132133
*/
133-
private static final BiConsumer<Value, MutableBindingSet> getSet(String s) {
134+
@InternalUseOnly
135+
public static final BiConsumer<Value, MutableBindingSet> getSet(String s) {
134136
switch (s) {
135137
case START:
136138
return (v, vp) -> ((ValuePair) vp).startValue = v;
@@ -149,7 +151,7 @@ private static final BiConsumer<Value, MutableBindingSet> getSet(String s) {
149151
* @param s the name of the variable to see if it is in the bindingset
150152
* @return the value of the start or end, if asked for a different field throw an illegalstate exception
151153
*/
152-
private static final Function<BindingSet, Value> getGet(String s) {
154+
public static final Function<BindingSet, Value> getGet(String s) {
153155
switch (s) {
154156
case START:
155157
return (vp) -> ((ValuePair) vp).startValue;
@@ -168,7 +170,7 @@ private static final Function<BindingSet, Value> getGet(String s) {
168170
* @param s the name of the variable to see if it is in the bindingset
169171
* @return true if start or end is not null, if asked for a different field throw an illegalstate exception
170172
*/
171-
private static final Predicate<BindingSet> getHas(String s) {
173+
public static final Predicate<BindingSet> getHas(String s) {
172174
switch (s) {
173175
case START:
174176
return (vp) -> ((ValuePair) vp).startValue != null;
@@ -431,7 +433,7 @@ protected boolean isUnbound(Var var, BindingSet bindings) {
431433
* A specialized BingingSet that can only hold the start and end values of a Path. Minimizing unneeded memory use,
432434
* and allows specialization in the sets required to answer this part of a query.
433435
*/
434-
protected static class ValuePair implements MutableBindingSet {
436+
public static class ValuePair implements MutableBindingSet {
435437
private static final long serialVersionUID = 1L;
436438

437439
private Value startValue;

tools/federation/src/main/java/org/eclipse/rdf4j/federated/evaluation/FedXZeroLengthPathEvaluationStep.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public FedXZeroLengthPathEvaluationStep(Var subjectVar, Var objVar, Var contextV
6262
}
6363

6464
@Override
65-
public CloseableIteration<BindingSet, QueryEvaluationException> evaluate(BindingSet bindings) {
65+
public CloseableIteration<BindingSet> evaluate(BindingSet bindings) {
6666
Value subj = null;
6767
try {
6868
subj = subPrep.evaluate(bindings);

tools/federation/src/main/java/org/eclipse/rdf4j/federated/evaluation/FederationEvalStrategy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ protected QueryEvaluationStep prepareNJoin(NJoin join, QueryEvaluationContext co
641641

642642
}
643643

644-
protected CloseableIteration<BindingSet, QueryEvaluationException> evaluateArbitrayLengthPath(
644+
protected CloseableIteration<BindingSet> evaluateArbitrayLengthPath(
645645
FedXArbitraryLengthPath alp, BindingSet bindings)
646646
throws QueryEvaluationException {
647647

@@ -655,7 +655,7 @@ protected QueryEvaluationStep prepare(FedXArbitraryLengthPath alp, QueryEvaluati
655655
alp.getQueryInfo());
656656
}
657657

658-
protected CloseableIteration<BindingSet, QueryEvaluationException> evaluateZeroLengthPath(FedXZeroLengthPath zlp,
658+
protected CloseableIteration<BindingSet> evaluateZeroLengthPath(FedXZeroLengthPath zlp,
659659
BindingSet bindings)
660660
throws QueryEvaluationException {
661661

0 commit comments

Comments
 (0)