Tabnine Logo
UnaryTupleOperator.getArg
Code IndexAdd Tabnine to your IDE (free)

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

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

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: 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-evaluation

@Override
protected void meetUnaryTupleOperator(UnaryTupleOperator node) {
  node.getArg().visit(this);
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

public Set<String> getBindingNames() {
  return getArg().getBindingNames();
}
origin: org.openrdf.sesame/sesame-queryalgebra-model

public Set<String> getAssuredBindingNames() {
  return getArg().getAssuredBindingNames();
}
origin: org.apache.rya/rya.indexing

@Override
protected void meetNode(final QueryModelNode node) {
  // By default, do not traverse
  assert node instanceof TupleExpr;
  if (node instanceof UnaryTupleOperator) {
    if (((UnaryTupleOperator) node).getArg().getBindingNames()
        .containsAll(filterVars)) {
      ((UnaryTupleOperator) node).getArg().visit(this);
    }
  }
  relocate(filter, (TupleExpr) node);
}
origin: eu.fbk.knowledgestore/ks-server

while (queryNode instanceof UnaryTupleOperator) {
  nodes.add((UnaryTupleOperator) queryNode);
  queryNode = ((UnaryTupleOperator) queryNode).getArg();
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.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.elmo/elmo-repository

@Override
protected void meetUnaryTupleOperator(UnaryTupleOperator node) {
  handleChild(SeRQO.ARG, node.getArg());
  super.meetUnaryTupleOperator(node);
}
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-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.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-evaluation

if (varsBefore.contains(name)) {
  UnaryTupleOperator proj = (UnaryTupleOperator)projElems.getParentNode();
  Extension ext = new Extension(proj.getArg());
  proj.setArg(ext);
  Var lostVar = new Var(name);
origin: org.apache.rya/rya.pcj.fluo.app

final QueryModelNode grandChild = unary.getArg();
Preconditions.checkArgument(grandChild instanceof Extension);
final Extension extension = (Extension) grandChild;
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(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: 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-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;
}
org.openrdf.query.algebraUnaryTupleOperatorgetArg

Javadoc

Gets the argument of this unary tuple operator.

Popular methods of UnaryTupleOperator

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

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • JFileChooser (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