Examples of Bound


Examples of org.openrdf.query.algebra.Bound

  @Override
  public ValueExpr visit(ASTBound node, Object data)
    throws VisitorException
  {
    Var var = (Var)node.getArg().jjtAccept(this, null);
    return new Bound(var);
  }
View Full Code Here

Examples of org.openrdf.query.algebra.Bound

      // No need to keep the comparison, but we do need to make sure
      // that the variable is not null in case it comes from an
      // optional statement pattern. Replace the SameTerm constraint with a
      // Bound constraint.
      filter.setCondition(new Bound(var));

      // Check if the variable is used in a pattern outside of a left join.
      // If so, removed this filter condition
      filter.visit(new BoundOptimizer());
    }
View Full Code Here

Examples of org.openrdf.query.algebra.Bound

    private List<Var> vars = new ArrayList<Var>();

    @Override
    public void meet(Filter filter) {
      if (filter.getCondition() instanceof Bound) {
        Bound bound = (Bound)filter.getCondition();
        vars.add(bound.getArg());
        innerJoins.add(Boolean.FALSE);
        filter.getArg().visit(this);
        vars.remove(vars.size() - 1);
        if (innerJoins.remove(innerJoins.size() - 1)) {
          filter.replaceWith(filter.getArg());
View Full Code Here

Examples of org.openrdf.query.algebra.Bound

  @Override
  public Bound visit(ASTBound node, Object data)
    throws VisitorException
  {
    return new Bound((Var)super.visit(node, data));
  }
View Full Code Here

Examples of org.openrdf.query.algebra.Bound

      // No need to keep the comparison, but we do need to make sure
      // that the variable is not null in case it comes from an
      // optional statement pattern. Replace the SameTerm constraint with a
      // Bound constraint.
      filter.setCondition(new Bound(var));
    }
View Full Code Here

Examples of org.openrdf.query.algebra.Bound

  @Override
  public ValueExpr visit(ASTBound node, Object data)
    throws VisitorException
  {
    Var var = (Var)node.getArg().jjtAccept(this, null);
    return new Bound(var);
  }
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.Bound

   */
  public void setOrigin(OSMData osmData) {
   
    if (osmData.getBounds() != null && !osmData.getBounds().isEmpty()) {
     
      Bound firstBound = osmData.getBounds().iterator().next();
     
      setOrigin(new LatLon(
          (firstBound.getTop() + firstBound.getBottom()) / 2,
          (firstBound.getLeft() + firstBound.getRight()) / 2));
     
    } else {
     
      if (osmData.getNodes().isEmpty()) {
        throw new IllegalArgumentException(
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.Bound

   */
  @Test
  public final void testProcess1() {
    BoundWriter bw = new BoundWriter("bound", 2, true);
    bw.setWriter(testBufferedWriter);
    bw.process(new Bound(20.123456, -21.987654, 22.555555, -23.234567, "originstring"));
    try {
      testBufferedWriter.flush();
    } catch (IOException e) {
      e.printStackTrace();
      fail("IOException");
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.Bound

   */
  @Test
  public final void testProcess2() {
    BoundWriter bw = new BoundWriter("bound", 2, true);
    bw.setWriter(testBufferedWriter);
    bw.process(new Bound(20.123456, -21.987654, 22.555555, -23.234567, ""));
    try {
      testBufferedWriter.flush();
    } catch (IOException e) {
      e.printStackTrace();
      fail("IOException");
View Full Code Here

Examples of org.openstreetmap.osmosis.core.domain.v0_6.Bound

      initialize();
    }
   
    // Build the bounds list.
    bounds = new ArrayList<Bound>();
    bounds.add(new Bound("Osmosis " + OsmosisConstants.VERSION));
   
    sources = new ArrayList<ReleasableIterator<EntityContainer>>();
   
    sources.add(new UpcastIterator<EntityContainer, BoundContainer>(
        new BoundContainerIterator(new ReleasableAdaptorForIterator<Bound>(bounds.iterator()))));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.