congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JavaFunction.isDeterministic
Code IndexAdd Tabnine to your IDE (free)

How to use
isDeterministic
method
in
org.h2.expression.JavaFunction

Best Java code snippets using org.h2.expression.JavaFunction.isDeterministic (Showing top 6 results out of 315)

origin: com.h2database/h2

@Override
public Expression optimize(Session session) {
  boolean allConst = isDeterministic();
  for (int i = 0, len = args.length; i < len; i++) {
    Expression e = args[i].optimize(session);
    args[i] = e;
    allConst &= e.isConstant();
  }
  if (allConst) {
    return ValueExpression.get(getValue(session));
  }
  return this;
}
origin: com.h2database/h2

@Override
public boolean isEverything(ExpressionVisitor visitor) {
  switch (visitor.getType()) {
  case ExpressionVisitor.DETERMINISTIC:
    if (!isDeterministic()) {
      return false;
    }
    // only if all parameters are deterministic as well
    break;
  case ExpressionVisitor.GET_DEPENDENCIES:
    visitor.addDependency(functionAlias);
    break;
  default:
  }
  for (Expression e : args) {
    if (e != null && !e.isEverything(visitor)) {
      return false;
    }
  }
  return true;
}
origin: com.eventsourcing/h2

@Override
public Expression optimize(Session session) {
  boolean allConst = isDeterministic();
  for (int i = 0, len = args.length; i < len; i++) {
    Expression e = args[i].optimize(session);
    args[i] = e;
    allConst &= e.isConstant();
  }
  if (allConst) {
    return ValueExpression.get(getValue(session));
  }
  return this;
}
origin: org.wowtools/h2

@Override
public Expression optimize(Session session) {
  boolean allConst = isDeterministic();
  for (int i = 0, len = args.length; i < len; i++) {
    Expression e = args[i].optimize(session);
    args[i] = e;
    allConst &= e.isConstant();
  }
  if (allConst) {
    return ValueExpression.get(getValue(session));
  }
  return this;
}
origin: org.wowtools/h2

@Override
public boolean isEverything(ExpressionVisitor visitor) {
  switch (visitor.getType()) {
  case ExpressionVisitor.DETERMINISTIC:
    if (!isDeterministic()) {
      return false;
    }
    // only if all parameters are deterministic as well
    break;
  case ExpressionVisitor.GET_DEPENDENCIES:
    visitor.addDependency(functionAlias);
    break;
  default:
  }
  for (Expression e : args) {
    if (e != null && !e.isEverything(visitor)) {
      return false;
    }
  }
  return true;
}
origin: com.eventsourcing/h2

@Override
public boolean isEverything(ExpressionVisitor visitor) {
  switch (visitor.getType()) {
  case ExpressionVisitor.DETERMINISTIC:
    if (!isDeterministic()) {
      return false;
    }
    // only if all parameters are deterministic as well
    break;
  case ExpressionVisitor.GET_DEPENDENCIES:
    visitor.addDependency(functionAlias);
    break;
  default:
  }
  for (Expression e : args) {
    if (e != null && !e.isEverything(visitor)) {
      return false;
    }
  }
  return true;
}
org.h2.expressionJavaFunctionisDeterministic

Popular methods of JavaFunction

  • <init>
  • getArgs
  • getExpressionColumns
  • getType
  • getValue
  • getValueForColumnList
  • getName

Popular in Java

  • Running tasks concurrently on multiple threads
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Option (scala)
  • CodeWhisperer 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