Codota Logo
Slice.replaceWith
Code IndexAdd Codota to your IDE (free)

How to use
replaceWith
method
in
org.openrdf.query.algebra.Slice

Best Java code snippets using org.openrdf.query.algebra.Slice.replaceWith (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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-sail-rdbms

@Override
public void meet(Slice node)
  throws RuntimeException
{
  super.meet(node);
  if (node.getArg() instanceof SelectQuery) {
    SelectQuery query = (SelectQuery)node.getArg();
    if (node.getOffset() > 0) {
      query.setOffset(node.getOffset());
    }
    if (node.getLimit() >= 0) {
      query.setLimit(node.getLimit());
    }
    node.replaceWith(query);
  }
}
org.openrdf.query.algebraSlicereplaceWith

Popular methods of Slice

  • getLimit
  • getOffset
  • <init>
  • hasLimit
    Checks whether the row selection has a (valid) limit.
  • hasOffset
    Checks whether the row selection has a (valid) offset.
  • getArg
  • setLimit
  • setOffset
  • clone
  • setArg
  • visitChildren
  • visitChildren

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getContentResolver (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Join (org.hibernate.mapping)
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