congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
WhereClause.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.asterix.lang.common.clause.WhereClause
constructor

Best Java code snippets using org.apache.asterix.lang.common.clause.WhereClause.<init> (Showing top 10 results out of 315)

origin: apache/asterixdb

final public WhereClause WhereClause() throws ParseException, ParseException {
Token startToken = null;
Expression whereExpr;
 jj_consume_token(WHERE);
      startToken = token;
 whereExpr = Expression();
  WhereClause wc = new WhereClause(whereExpr);
  {if (true) return addSourceLocation(wc, startToken);}
 throw new Error("Missing return statement in function");
}
origin: apache/asterixdb

final public Clause WhereClause() throws ParseException, ParseException {
WhereClause wc = new WhereClause();
Expression whereExpr;
 jj_consume_token(WHERE);
 whereExpr = Expression();
  wc.setWhereExpr(whereExpr);
  {if (true) return wc;}
 throw new Error("Missing return statement in function");
}
origin: apache/asterixdb

final public Clause WhereClause() throws ParseException, ParseException {
WhereClause wc = new WhereClause();
Expression whereExpr;
 jj_consume_token(WHERE);
 whereExpr = Expression();
  wc.setWhereExpr(whereExpr);
  {if (true) return wc;}
 throw new Error("Missing return statement in function");
}
origin: apache/asterixdb

    newWhereExpr.addOperator(OperatorType.AND);
  results.add(new WhereClause(newWhereExpr));
} else {
  results.add(firstWhereClause);
origin: apache/asterixdb

@Override
public WhereClause visit(WhereClause whereClause, Void arg) throws CompilationException {
  WhereClause copy = new WhereClause((Expression) whereClause.getWhereExpr().accept(this, arg));
  copy.setSourceLocation(whereClause.getSourceLocation());
  return copy;
}
origin: apache/asterixdb

@Override
public Pair<ILangExpression, VariableSubstitutionEnvironment> visit(WhereClause wc,
    VariableSubstitutionEnvironment env) throws CompilationException {
  Pair<ILangExpression, VariableSubstitutionEnvironment> p1 = wc.getWhereExpr().accept(this, env);
  WhereClause newW = new WhereClause((Expression) p1.first);
  newW.setSourceLocation(wc.getSourceLocation());
  return new Pair<>(newW, p1.second);
}
origin: apache/asterixdb

@Override
public Void visit(DeleteStatement deleteStmt, Void visitArg) {
  List<Expression> arguments = new ArrayList<>();
  Identifier dataverseName = deleteStmt.getDataverseName();
  Identifier datasetName = deleteStmt.getDatasetName();
  String arg = dataverseName == null ? datasetName.getValue()
      : dataverseName.getValue() + "." + datasetName.getValue();
  LiteralExpr argumentLiteral = new LiteralExpr(new StringLiteral(arg));
  arguments.add(argumentLiteral);
  CallExpr callExpression = new CallExpr(new FunctionSignature(BuiltinFunctions.DATASET), arguments);
  List<Clause> clauseList = new ArrayList<>();
  VariableExpr var = deleteStmt.getVariableExpr();
  Clause forClause = new ForClause(var, callExpression);
  clauseList.add(forClause);
  Clause whereClause = null;
  Expression condition = deleteStmt.getCondition();
  if (condition != null) {
    whereClause = new WhereClause(condition);
    clauseList.add(whereClause);
  }
  VariableExpr returnExpr = new VariableExpr(var.getVar());
  returnExpr.setIsNewVar(false);
  FLWOGRExpression flowgr = new FLWOGRExpression(clauseList, returnExpr);
  Query query = new Query(false);
  query.setBody(flowgr);
  deleteStmt.setQuery(query);
  return null;
}
origin: apache/asterixdb

jj_consume_token(WHERE);
 beginPos = token;
 whereClause = new WhereClause();
 Expression whereExpr;
whereExpr = Expression();
origin: apache/asterixdb

whereClause = new WhereClause(whereClauseQuery.getBody());
origin: apache/asterixdb

Expression condition = deleteStmt.getCondition();
if (condition != null) {
  whereClause = new WhereClause(condition);
  whereClause.setSourceLocation(condition.getSourceLocation());
org.apache.asterix.lang.common.clauseWhereClause<init>

Popular methods of WhereClause

  • getWhereExpr
  • setWhereExpr
  • getSourceLocation
  • setSourceLocation

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Vim plugins
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