Tabnine Logo
Expression.getCost
Code IndexAdd Tabnine 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)

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 = 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;
  if (on != null) {
    cost += on.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 condition.getCost();
}
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 left.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() + 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

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Path (java.nio.file)
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Table (org.hibernate.mapping)
    A relational table
  • 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