Codota Logo
UnaryTupleOperator.setArg
Code IndexAdd Codota to your IDE (free)

How to use
setArg
method
in
org.openrdf.query.algebra.UnaryTupleOperator

Best Java code snippets using org.openrdf.query.algebra.UnaryTupleOperator.setArg (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

/**
 * Creates a new unary tuple operator.
 * 
 * @param arg
 *        The operator's argument, must not be <tt>null</tt>.
 */
public UnaryTupleOperator(TupleExpr arg) {
  setArg(arg);
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

@Override
public void replaceChildNode(QueryModelNode current, QueryModelNode replacement) {
  if (arg == current) {
    setArg((TupleExpr)replacement);
  }
  else {
    super.replaceChildNode(current, replacement);
  }
}
origin: org.openrdf.elmo/elmo-repository

@Override
protected void meetUnaryTupleOperator(UnaryTupleOperator node) {
  if (predicate.equals(SeRQO.ARG)) {
    node.setArg((TupleExpr) model.get(object));
  } else {
    super.meetUnaryTupleOperator(node);
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

@Override
protected void meetUnaryTupleOperator(UnaryTupleOperator node)
{
  assert former == node.getArg();
  if (replacement == null) {
    removeNode(node);
  }
  else {
    node.setArg((TupleExpr)replacement);
  }
}
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-spin

private void addSourceExpressions(UnaryTupleOperator op, Collection<ProjectionElem> elems) {
  Extension ext = null;
  for (ProjectionElem projElem : elems) {
    ExtensionElem extElem = projElem.getSourceExpression();
    if (extElem != null) {
      if (ext == null) {
        ext = new Extension(op.getArg());
        op.setArg(ext);
      }
      ext.addElement(extElem);
    }
  }
}
origin: org.openrdf.sesame/sesame-spin

private TupleExpr visitHaving(Resource having)
  throws OpenRDFException
{
  UnaryTupleOperator op = (UnaryTupleOperator)group.getParentNode();
  op.setArg(new Extension(group));
  Iteration<? extends Resource, QueryEvaluationException> iter = Statements.listResources(having,
      store);
  while (iter.hasNext()) {
    Resource r = iter.next();
    ValueExpr havingExpr = visitExpression(r);
    Filter filter = new Filter(op.getArg(), havingExpr);
    op.setArg(filter);
    op = filter;
  }
  return op;
}
origin: org.openrdf.sesame/sesame-spin

private UnaryTupleOperator visitTemplates(Resource templates)
  throws OpenRDFException
{
  List<ProjectionElemList> projElemLists = new ArrayList<ProjectionElemList>();
  Iteration<? extends Resource, QueryEvaluationException> iter = Statements.listResources(templates,
      store);
  while (iter.hasNext()) {
    Resource r = iter.next();
    ProjectionElemList projElems = visitTemplate(r);
    projElemLists.add(projElems);
  }
  UnaryTupleOperator expr;
  if (projElemLists.size() > 1) {
    MultiProjection proj = new MultiProjection();
    proj.setProjections(projElemLists);
    expr = proj;
  }
  else {
    Projection proj = new Projection();
    proj.setProjectionElemList(projElemLists.get(0));
    expr = proj;
  }
  Reduced reduced = new Reduced();
  reduced.setArg(expr);
  tupleRoot = reduced;
  SingletonSet stub = new SingletonSet();
  expr.setArg(stub);
  tupleNode = stub;
  return expr;
}
origin: org.openrdf.sesame/sesame-queryrender

  aCurr.setArg(aOrder);
  aCurr = aOrder;
  aCurr.setArg(aDistinct);
  aCurr = aDistinct;
  aCurr.setArg(aReduced);
  aCurr = aReduced;
aCurr.setArg(aProjection);
aCurr.setArg(aJoin);
origin: org.openrdf.sesame/sesame-queryalgebra-evaluation

UnaryTupleOperator proj = (UnaryTupleOperator)projElems.getParentNode();
Extension ext = new Extension(proj.getArg());
proj.setArg(ext);
Var lostVar = new Var(name);
Value value = bindings.getValue(name);
origin: apache/marmotta

@Override
public void meet(Reduced node) throws RuntimeException {
  TupleExpr child = node.getArg();
  if(!isSupported(child) && child instanceof UnaryTupleOperator) {
    UnaryTupleOperator replacement = (UnaryTupleOperator)child.clone();
    // switch positions of child and node
    node.replaceWith(replacement);
    node.setArg(((UnaryTupleOperator) child).getArg().clone());
    replacement.setArg(node.clone());
    // visit the newly inserted replacement node (i.e. the clone of child now containing the old "node" as
    // child, so "node" can be bubbled down further if needed)
    replacement.visit(this);
  }
}
origin: apache/marmotta

@Override
public void meet(Distinct node) throws RuntimeException {
  TupleExpr child = node.getArg();
  if(!isSupported(child) && child instanceof UnaryTupleOperator) {
    UnaryTupleOperator replacement = (UnaryTupleOperator)child.clone();
    // switch positions of child and node
    node.replaceWith(replacement);
    node.setArg(((UnaryTupleOperator) child).getArg().clone());
    replacement.setArg(node.clone());
    // visit the newly inserted replacement node (i.e. the clone of child now containing the old "node" as
    // child, so "node" can be bubbled down further if needed)
    replacement.visit(this);
  }
}
origin: apache/marmotta

@Override
public void meet(Slice node) throws RuntimeException {
  TupleExpr child = node.getArg();
  if(!isSupported(child) && child instanceof UnaryTupleOperator) {
    UnaryTupleOperator replacement = (UnaryTupleOperator)child.clone();
    // switch positions of child and node
    node.replaceWith(replacement);
    node.setArg(((UnaryTupleOperator) child).getArg().clone());
    replacement.setArg(node.clone());
    // visit the newly inserted replacement node (i.e. the clone of child now containing the old "node" as
    // child, so "node" can be bubbled down further if needed)
    replacement.visit(this);
  }
}
org.openrdf.query.algebraUnaryTupleOperatorsetArg

Javadoc

Sets the argument of this unary tuple operator.

Popular methods of UnaryTupleOperator

  • getArg
    Gets the argument of this unary tuple operator.
  • clone
  • replaceWith
  • equals
  • replaceChildNode
  • getParentNode
  • getSignature
  • hashCode
  • visit
  • visitChildren

Popular in Java

  • Making http post requests using okhttp
  • startActivity (Activity)
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • JFrame (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now