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

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

Best Java code snippets using org.openrdf.query.algebra.UnaryTupleOperator (Showing top 20 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

@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-sail-federation

@Override
protected void meetUnaryTupleOperator(UnaryTupleOperator node)
  throws RepositoryException
{
  super.meetUnaryTupleOperator(node);
  RepositoryConnection owner = getSingleOwner(node.getArg());
  if (owner != null) {
    node.replaceWith(new OwnedTupleExpr(owner, node.clone()));
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

@Override
public boolean equals(Object other) {
  return other instanceof Distinct && super.equals(other);
}
origin: org.openrdf.sesame/sesame-queryalgebra-evaluation

@Override
protected void meetUnaryTupleOperator(UnaryTupleOperator node) {
  super.meetUnaryTupleOperator(node);
  if (node.getArg() instanceof EmptySet) {
    node.replaceWith(node.getArg());
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

@Override
public boolean equals(Object other) {
  if (other instanceof UnaryTupleOperator) {
    UnaryTupleOperator o = (UnaryTupleOperator)other;
    return arg.equals(o.getArg());
  }
  return false;
}
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: org.apache.rya/rya.pcj.fluo.app

  @Override
  public void meetOther(QueryModelNode node) {
    if (node instanceof PeriodicQueryNode) {
      PeriodicQueryNode pNode = (PeriodicQueryNode) node;
      // do nothing if PeriodicQueryNode already positioned correctly
      if (pNode.equals(relocationParent.getArg())) {
        return;
      }
      // remove node from query
      pNode.replaceWith(pNode.getArg());
      // set node' child to be relocationParent's child
      pNode.setArg(relocationParent.getArg());
      // add node back into query below relocationParent
      relocationParent.replaceChildNode(relocationParent.getArg(), pNode);
    }
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public Slice clone() {
    return (Slice)super.clone();
  }
}
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 (replaceNodeInList(groupElements, current, replacement)) {
    return;
  }
  super.replaceChildNode(current, replacement);
}
origin: org.openrdf.sesame/sesame-queryalgebra-evaluation

@Override
protected void meetUnaryTupleOperator(UnaryTupleOperator node) {
  node.getArg().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: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public QueryRoot clone() {
    return (QueryRoot)super.clone();
  }
}
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.sesame/sesame-queryalgebra-model

@Override
public void replaceChildNode(QueryModelNode current, QueryModelNode replacement) {
  if (serviceRef == current) {
    setServiceRef((Var)replacement);
  }
  else {
    super.replaceChildNode(current, 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-queryalgebra-model

public Set<String> getBindingNames() {
  return getArg().getBindingNames();
}
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);
  }
}
origin: org.openrdf.alibaba/alibaba-sail-federation

@Override
protected void meetUnaryTupleOperator(UnaryTupleOperator node)
  throws RepositoryException
{
  super.meetUnaryTupleOperator(node);
  RepositoryConnection owner = getSingleOwner(node.getArg());
  if (owner != null) {
    node.replaceWith(new OwnedTupleExpr(owner, node.clone()));
  }
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

  @Override
  public Reduced clone() {
    return (Reduced)super.clone();
  }
}
org.openrdf.query.algebraUnaryTupleOperator

Javadoc

An abstract superclass for unary tuple operators which, by definition, has one argument.

Most used methods

  • getArg
    Gets the argument of this unary tuple operator.
  • setArg
    Sets the argument of this unary tuple operator.
  • clone
  • replaceWith
  • equals
  • replaceChildNode
  • getParentNode
  • getSignature
  • hashCode
  • visit
  • visitChildren
  • 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