Tabnine Logo
org.openrdf.query.algebra
Code IndexAdd Tabnine to your IDE (free)

How to use org.openrdf.query.algebra

Best Java code snippets using org.openrdf.query.algebra (Showing top 20 results out of 342)

origin: stackoverflow.com

 // Solve for time
float time = (float)(intersectionDistance / lineLength);

// If time is outside the boundaries, return null. This algorithm can 
// return a negative time which indicates the previous intersection. 
if (time > 1.0f || time < 0.0f) {
  return null;
}

// Solve the intersection and normal
float ix = time * dx + start.x;
float iy = time * dy + start.y;
float nx = (float)((ix - cornerX) * inverseRadius);
float ny = (float)((iy - cornerY) * inverseRadius);

return new Intersection( ix, iy, time, nx, ny );
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public ArbitraryLengthPath clone() {
    ArbitraryLengthPath clone = (ArbitraryLengthPath)super.clone();
    clone.setSubjectVar(getSubjectVar().clone());
    clone.setPathExpression(getPathExpression().clone());
    clone.setObjectVar(getObjectVar().clone());

    if (getContextVar() != null) {
      clone.setContextVar(getContextVar().clone());
    }

    return clone;
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public BinaryTupleOperator clone() {
    BinaryTupleOperator clone = (BinaryTupleOperator)super.clone();
    clone.setLeftArg(getLeftArg().clone());
    clone.setRightArg(getRightArg().clone());
    return clone;
  }
}
origin: org.apache.rya/rya.indexing

  @Override
  public void meet(final Filter filter) {
    //First visit children, then condition (reverse of default):
    filter.getArg().visit(this);
    filter.getCondition().visit(this);
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public UnaryTupleOperator clone() {
    UnaryTupleOperator clone = (UnaryTupleOperator)super.clone();
    clone.setArg(getArg().clone());
    return clone;
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public Filter clone() {
    Filter clone = (Filter)super.clone();
    clone.setCondition(getCondition().clone());
    return clone;
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public LeftJoin clone() {
    LeftJoin clone = (LeftJoin)super.clone();
    if (hasCondition()) {
      clone.setCondition(getCondition().clone());
    }
    return clone;
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public ExtensionElem clone() {
    ExtensionElem clone = (ExtensionElem)super.clone();
    clone.setExpr(getExpr().clone());
    return clone;
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

@Override
public Projection clone() {
  Projection clone = (Projection)super.clone();
  clone.setProjectionElemList(getProjectionElemList().clone());
  return clone;
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public BinaryValueOperator clone() {
    BinaryValueOperator clone = (BinaryValueOperator)super.clone();
    clone.setLeftArg(getLeftArg().clone());
    clone.setRightArg(getRightArg().clone());
    return clone;
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public OrderElem clone() {
    OrderElem clone = (OrderElem)super.clone();
    clone.setExpr(getExpr().clone());
    return clone;
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public ZeroLengthPath clone() {
    ZeroLengthPath clone = (ZeroLengthPath)super.clone();
    clone.setSubjectVar(getSubjectVar().clone());
    clone.setObjectVar(getObjectVar().clone());

    if (getContextVar() != null) {
      clone.setContextVar(getContextVar().clone());
    }

    return clone;
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

@Override
public boolean equals(Object other) {
  if (other instanceof Projection && super.equals(other)) {
    Projection o = (Projection)other;
    return projElemList.equals(o.getProjectionElemList());
  }
  return false;
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

@Override
public boolean equals(Object other) {
  if (other instanceof Compare && super.equals(other)) {
    Compare o = (Compare)other;
    return operator.equals(o.getOperator());
  }
  return false;
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public Bound clone() {
    Bound clone = (Bound)super.clone();
    clone.setArg(getArg().clone());
    return clone;
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public GroupElem clone() {
    GroupElem clone = (GroupElem)super.clone();
    clone.setOperator(getOperator().clone());
    return clone;
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

@Override
public If clone() {
  If clone = (If)super.clone();
  clone.setCondition(condition.clone());
  if (result != null) {
    clone.setResult(result.clone());
  }
  if (alternative != null) {
    clone.setAlternative(alternative.clone());
  }
  return clone;
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public CompareSubQueryValueOperator clone() {
    CompareSubQueryValueOperator clone = (CompareSubQueryValueOperator)super.clone();
    clone.setArg(getArg().clone());
    return clone;
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

@Override
public boolean equals(Object other) {
  if (other instanceof CompareAny && super.equals(other)) {
    CompareAny o = (CompareAny)other;
    return operator.equals(o.getOperator());
  }
  return false;
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

@Override
public boolean equals(Object other) {
  if (other instanceof CompareAll && super.equals(other)) {
    CompareAll o = (CompareAll)other;
    return operator.equals(o.getOperator());
  }
  return false;
}
org.openrdf.query.algebra

Most used classes

  • Var
    A variable that can contain a Value.
  • StatementPattern
    A tuple expression that matches a statement pattern against an RDF graph. Statement patterns can be
  • TupleExpr
    An expression that evaluates to RDF tuples.
  • Filter
    The FILTER operator, as defined in SPARQL Query Language for RDF [http://www.w3.org/TR/rdf-sparql-qu
  • ValueConstant
    A ValueExpr with a constant value.
  • Projection,
  • QueryBindingSet,
  • Extension,
  • ExtensionElem,
  • LeftJoin,
  • ProjectionElem,
  • ProjectionElemList,
  • Union,
  • Compare,
  • FunctionCall,
  • EvaluationStrategy,
  • QueryModelNode,
  • QueryRoot,
  • MultiProjection
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now