congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
UnaryTupleOperator
Code IndexAdd Tabnine 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)

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(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.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(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.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
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • JButton (javax.swing)
  • JLabel (javax.swing)
  • Github Copilot alternatives
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