Tabnine Logo
InsertStatement.getQuery
Code IndexAdd Tabnine to your IDE (free)

How to use
getQuery
method
in
org.apache.asterix.lang.common.statement.InsertStatement

Best Java code snippets using org.apache.asterix.lang.common.statement.InsertStatement.getQuery (Showing top 7 results out of 315)

origin: apache/asterixdb

@Override
public Void visit(InsertStatement insert, Integer step) throws CompilationException {
  out.print(skip(step) + "insert into " + datasetSymbol
      + generateFullName(insert.getDataverseName(), insert.getDatasetName()));
  out.print("(");
  insert.getQuery().accept(this, step + 2);
  out.print(")");
  out.println(SEMICOLON);
  return null;
}
origin: apache/asterixdb

@Override
public Void visit(InsertStatement insert, Integer step) throws CompilationException {
  out.print(skip(step) + "insert into " + datasetSymbol
      + generateFullName(insert.getDataverseName(), insert.getDatasetName()) + "\n");
  insert.getQuery().accept(this, step);
  out.println(SEMICOLON);
  return null;
}
origin: apache/asterixdb

@Override
public Void visit(InsertStatement wc, Void arg) throws CompilationException {
  wc.getQuery().accept(this, arg);
  Expression returnExpression = wc.getReturnExpression();
  if (returnExpression != null) {
    returnExpression.accept(this, arg);
  }
  return null;
}
origin: apache/asterixdb

@Override
public Void visit(InsertStatement insert, Integer step) throws CompilationException {
  out.print(skip(step) + "insert into " + generateFullName(insert.getDataverseName(), insert.getDatasetName())
      + "\n");
  insert.getQuery().accept(this, step);
  out.println(SEMICOLON);
  return null;
}
origin: apache/asterixdb

@Override
public Expression visit(InsertStatement insertStatement, ILangExpression arg) throws CompilationException {
  Expression returnExpr = insertStatement.getReturnExpression();
  if (returnExpr != null) {
    insertStatement.setReturnExpression(visit(returnExpr, arg));
  }
  Query bodyQuery = insertStatement.getQuery();
  bodyQuery.accept(this, arg);
  return null;
}
origin: apache/asterixdb

switch (insertUpsert.getKind()) {
  case INSERT:
    clfrqs = new CompiledInsertStatement(dataverseName, datasetName, rewrittenInsertUpsert.getQuery(),
        rewrittenInsertUpsert.getVarCounter(), rewrittenInsertUpsert.getVar(),
        rewrittenInsertUpsert.getReturnExpression());
    break;
  case UPSERT:
    clfrqs = new CompiledUpsertStatement(dataverseName, datasetName, rewrittenInsertUpsert.getQuery(),
        rewrittenInsertUpsert.getVarCounter(), rewrittenInsertUpsert.getVar(),
        rewrittenInsertUpsert.getReturnExpression());
return apiFramework.compileQuery(clusterInfoCollector, metadataProvider, rewrittenInsertUpsert.getQuery(),
    rewrittenResult.second, datasetName, sessionOutput, clfrqs, externalVars);
origin: apache/asterixdb

@Override
public Expression visit(InsertStatement insertStatement, ILangExpression arg) throws CompilationException {
  scopeChecker.createNewScope();
  // Visits the body query.
  insertStatement.getQuery().accept(this, insertStatement);
  // Registers the (inserted) data item variable.
  VariableExpr bindingVar = insertStatement.getVar();
  if (bindingVar != null) {
    addNewVarSymbolToScope(scopeChecker.getCurrentScope(), bindingVar.getVar(), bindingVar.getSourceLocation());
  }
  // Visits the expression for the returning expression.
  Expression returningExpr = insertStatement.getReturnExpression();
  if (returningExpr != null) {
    insertStatement.setReturnExpression(visit(returningExpr, insertStatement));
  }
  return null;
}
org.apache.asterix.lang.common.statementInsertStatementgetQuery

Popular methods of InsertStatement

  • getDataverseName
  • <init>
  • getDatasetName
  • getReturnExpression
  • getVar
  • setReturnExpression
  • accept
  • equals
  • getBody
  • getKind
  • getSourceLocation
  • getVarCounter
  • getSourceLocation,
  • getVarCounter,
  • hashCode,
  • setBody

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • setContentView (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
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