Codota Logo
Expression.getCost
Code IndexAdd Codota to your IDE (free)

How to use
getCost
method
in
org.h2.expression.Expression

Best Java code snippets using org.h2.expression.Expression.getCost (Showing top 20 results out of 315)

  • Common ways to obtain Expression
private void myMethod () {
Expression e =
  • Codota IconValueExpression.getNull()
  • Codota IconColumn column;column.getDefaultExpression()
  • Codota IconTableFilter tableFilter;tableFilter.getJoinCondition()
  • Smart code suggestions by Codota
}
origin: com.h2database/h2

@Override
public int getCost() {
  int cost = 3;
  for (Expression e : args) {
    if (e != null) {
      cost += e.getCost();
    }
  }
  return cost;
}
origin: com.h2database/h2

@Override
public int getCost() {
  return left.getCost();
}
origin: com.h2database/h2

@Override
public int getCost() {
  return left.getCost() + right.getCost();
}
origin: com.h2database/h2

@Override
public int getCost() {
  int cost = 1;
  if (on != null) {
    cost += on.getCost();
  }
  if (filterCondition != null) {
    cost += filterCondition.getCost();
  }
  return cost;
}
origin: com.h2database/h2

@Override
public int getCost() {
  int cost = 5;
  for (Expression e : args) {
    cost += e.getCost();
  }
  if (filterCondition != null) {
    cost += filterCondition.getCost();
  }
  return cost;
}
origin: com.h2database/h2

@Override
public int getCost() {
  int cost = 1;
  for (Expression e : list) {
    cost += e.getCost();
  }
  return cost;
}
origin: com.h2database/h2

@Override
public int getCost() {
  int cost = left.getCost();
  for (Expression e : valueList) {
    cost += e.getCost();
  }
  return cost;
}
origin: com.h2database/h2

@Override
public int getCost() {
  return left.getCost() + right.getCost() + 3;
}
origin: com.h2database/h2

@Override
public int getCost() {
  return expr.getCost();
}
origin: com.h2database/h2

@Override
public int getCost() {
  return condition.getCost();
}
origin: com.h2database/h2

@Override
public int getCost() {
  return left.getCost() + (right == null ? 0 : right.getCost()) + 1;
}
origin: com.h2database/h2

@Override
public int getCost() {
  return left.getCost();
}
origin: com.h2database/h2

@Override
public int getCost() {
  return left.getCost() + 1 + (right == null ? 0 : right.getCost());
}
origin: com.h2database/h2

@Override
public int getCost() {
  int cost = javaMethod.hasConnectionParam() ? 25 : 5;
  for (Expression e : args) {
    cost += e.getCost();
  }
  return cost;
}
origin: com.h2database/h2

@Override
public int getCost() {
  return left.getCost() + query.getCostAsExpression();
}
origin: com.h2database/h2

int lc = left.getCost(), rc = right.getCost();
if (rc < lc) {
  Expression t = left;
origin: org.wowtools/h2

@Override
public int getCost() {
  int cost = left.getCost();
  for (Expression e : valueList) {
    cost += e.getCost();
  }
  return cost;
}
origin: com.eventsourcing/h2

@Override
public int getCost() {
  int cost = 1;
  for (Expression e : list) {
    cost += e.getCost();
  }
  return cost;
}
origin: org.wowtools/h2

@Override
public int getCost() {
  return left.getCost() + 1 + (right == null ? 0 : right.getCost());
}
origin: com.h2database/com.springsource.org.h2

public int getCost() {
  int cost = functionAlias.hasConnectionParam() ? 25 : 5;
  for (int i = 0; i < args.length; i++) {
    cost += args[i].getCost();
  }
  return cost;
}
org.h2.expressionExpressiongetCost

Javadoc

Estimate the cost to process the expression. Used when optimizing the query, to calculate the query plan with the lowest estimated cost.

Popular methods of Expression

  • getAlias
    Get the alias name of a column or SQL expression if it is not an aliased expression.
  • getDisplaySize
    Get the display size of this expression.
  • getNonAliasExpression
    Returns the main expression, skipping aliases.
  • getNotIfPossible
    If it is possible, return the negated expression. This is used to optimize NOT expressions: NOT ID>1
  • getPrecision
    Get the precision of this expression.
  • getScale
    Get the scale of this expression.
  • getType
    Return the data type. The data type may not be known before the optimization phase.
  • getValue
    Return the resulting value for the current row.
  • isConstant
    Check if this expression will always return the same value.
  • addFilterConditions
    Add conditions to a table filter if they can be evaluated.
  • createIndexConditions
    Create index conditions if possible and attach them to the table filter.
  • getBooleanValue
    Get the value in form of a boolean expression. Returns true or false. In this database, everything c
  • createIndexConditions,
  • getBooleanValue,
  • getColumnName,
  • getNullable,
  • getSQL,
  • getSchemaName,
  • getTableAlias,
  • getTableName,
  • isAutoIncrement

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • putExtra (Intent)
  • getSystemService (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
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