use of org.apache.jena.sparql.algebra.op.OpSlice in project jena by apache.
the class TransformSliceProject method transform.
@Override
public Op transform(OpSlice opSlice, Op subOp) {
// (slice (project...)) ==> (project (slice ...))
if (subOp instanceof OpProject) {
OpProject p = (OpProject) subOp;
Op sub = p.getSubOp();
Op x = new OpSlice(sub, opSlice.getStart(), opSlice.getLength());
x = new OpProject(x, p.getVars());
return x;
}
return super.transform(opSlice, subOp);
}