Tabnine Logo
WhereClause
Code IndexAdd Tabnine to your IDE (free)

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

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

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

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

@Override
public Expression visit(WhereClause whereClause, ILangExpression arg) throws CompilationException {
  whereClause.setWhereExpr(visit(whereClause.getWhereExpr(), whereClause));
  return null;
}
origin: apache/asterixdb

do {
  WhereClause whereClause = (WhereClause) clause;
  expressions.add(whereClause.getWhereExpr());
  if (++index >= size) {
    break;
    newWhereExpr.addOperator(OperatorType.AND);
  results.add(new WhereClause(newWhereExpr));
} else {
  results.add(firstWhereClause);
origin: apache/asterixdb

  @Override
  public boolean equals(Object object) {
    if (this == object) {
      return true;
    }
    if (!(object instanceof WhereClause)) {
      return false;
    }
    WhereClause whereClause = (WhereClause) object;
    return whereExpr.equals(whereClause.getWhereExpr());
  }
}
origin: apache/asterixdb

@Override
public Pair<ILogicalOperator, LogicalVariable> visit(WhereClause w, Mutable<ILogicalOperator> tupSource)
    throws CompilationException {
  Pair<ILogicalExpression, Mutable<ILogicalOperator>> p = langExprToAlgExpression(w.getWhereExpr(), tupSource);
  SelectOperator s = new SelectOperator(new MutableObject<>(p.first), false, null);
  s.getInputs().add(p.second);
  s.setSourceLocation(w.getSourceLocation());
  return new Pair<>(s, null);
}
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

Expression condition = deleteStmt.getCondition();
if (condition != null) {
  whereClause = new WhereClause(condition);
  whereClause.setSourceLocation(condition.getSourceLocation());
origin: apache/asterixdb

@Override
public Expression visit(WhereClause whereClause, ILangExpression arg) throws CompilationException {
  whereClause.setWhereExpr(visit(whereClause.getWhereExpr(), whereClause));
  return null;
}
origin: apache/asterixdb

@Override
public Void visit(WhereClause whereClause, Collection<VariableExpr> freeVars) throws CompilationException {
  whereClause.getWhereExpr().accept(this, freeVars);
  return null;
}
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

@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

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

@Override
public Boolean visit(WhereClause wc, List<FunctionDecl> arg) throws CompilationException {
  Pair<Boolean, Expression> p = inlineUdfsInExpr(wc.getWhereExpr(), arg);
  wc.setWhereExpr(p.second);
  return p.first;
}
origin: apache/asterixdb

@Override
public Boolean visit(WhereClause wc, ILangExpression arg) throws CompilationException {
  return visit(wc.getWhereExpr(), arg);
}
origin: apache/asterixdb

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

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

@Override
public Void visit(WhereClause wc, Void arg) throws CompilationException {
  wc.getWhereExpr().accept(this, arg);
  return null;
}
origin: apache/asterixdb

@Override
public Void visit(WhereClause wc, Integer step) throws CompilationException {
  out.print(skip(step) + "where ");
  wc.getWhereExpr().accept(this, step + 1);
  out.println();
  return null;
}
origin: apache/asterixdb

@Override
public Void visit(WhereClause wc, Integer step) throws CompilationException {
  out.println(skip(step) + "Where");
  wc.getWhereExpr().accept(this, step + 1);
  return null;
}
org.apache.asterix.lang.common.clauseWhereClause

Most used methods

  • <init>
  • getWhereExpr
  • setWhereExpr
  • getSourceLocation
  • setSourceLocation

Popular in Java

  • Making http post requests using okhttp
  • getApplicationContext (Context)
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • String (java.lang)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • BoxLayout (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best IntelliJ 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