Package org.openrdf.query.algebra

Examples of org.openrdf.query.algebra.Slice


    throws StoreException
  {
    TupleQueryModel query = getParsedQuery();

    if (getOffset() > 0 || getLimit() >= 0) {
      query.setArg(new Slice(query.getArg(), getOffset(), getLimit()));
    }

    Cursor<? extends BindingSet> bindingsIter = evaluate(query);

    return new TupleResultImpl(new ArrayList<String>(query.getBindingNames()), bindingsIter);
View Full Code Here


    if (offsetNode != null) {
      offset = (Integer)offsetNode.jjtAccept(this, null);
    }

    if (offset >= 1 || limit >= 0) {
      tupleExpr = new Slice(tupleExpr, offset, limit);
    }
    return tupleExpr;
  }
View Full Code Here

    if (offsetNode != null) {
      offset = (Integer)offsetNode.jjtAccept(this, null);
    }

    if (offset >= 1 || limit >= 0) {
      tupleExpr = new Slice(tupleExpr, offset, limit);
    }

    return tupleExpr;
  }
View Full Code Here

    if (offsetNode != null) {
      offset = (Integer)offsetNode.jjtAccept(this, null);
    }

    if (offset >= 1 || limit >= 0) {
      tupleExpr = new Slice(tupleExpr, offset, limit);
    }

    return tupleExpr;
  }
View Full Code Here

    if (offsetNode != null) {
      offset = (Integer)offsetNode.jjtAccept(this, null);
    }

    if (offset >= 1 || limit >= 0) {
      tupleExpr = new Slice(tupleExpr, offset, limit);
    }

    return tupleExpr;
  }
View Full Code Here

      if (offsetNode != null) {
        offset = (Integer)offsetNode.jjtAccept(this, null);
      }

      if (offset >= 1 || limit >= 0) {
        tupleExpr = new Slice(tupleExpr, offset, limit);
      }
    }

    // Process describe clause last
    return (TupleExpr)node.getDescribe().jjtAccept(this, tupleExpr);
View Full Code Here

    graphPattern = new GraphPattern();

    super.visit(node, null);

    TupleExpr tupleExpr = graphPattern.buildTupleExpr();
    tupleExpr = new Slice(tupleExpr, 0, 1);

    return tupleExpr;
  }
View Full Code Here

    if (offsetNode != null) {
      offset = (Integer)offsetNode.jjtAccept(this, null);
    }

    if (offset >= 1 || limit >= 0) {
      tupleExpr = new Slice(tupleExpr, offset, limit);
    }
    return tupleExpr;
  }
View Full Code Here

    if (offsetNode != null) {
      offset = (Integer)offsetNode.jjtAccept(this, null);
    }

    if (offset >= 1 || limit >= 0) {
      tupleExpr = new Slice(tupleExpr, offset, limit);
    }

    return tupleExpr;
  }
View Full Code Here

    if (offsetNode != null) {
      offset = (Integer)offsetNode.jjtAccept(this, null);
    }

    if (offset >= 1 || limit >= 0) {
      tupleExpr = new Slice(tupleExpr, offset, limit);
    }

    return tupleExpr;
  }
View Full Code Here

TOP

Related Classes of org.openrdf.query.algebra.Slice

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.