Tabnine Logo
Expression.getDisplaySize
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.h2database/h2

@Override
public int getDisplaySize(int i) {
  return expressions[i].getDisplaySize();
}
origin: com.h2database/h2

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

@Override
public int getDisplaySize(int i) {
  return expressions[i].getDisplaySize();
}
origin: com.h2database/h2

@Override
public int getDisplaySize() {
  if (right != null) {
    switch (opType) {
    case CONCAT:
      return MathUtils.convertLongToInt((long) left.getDisplaySize() +
          (long) right.getDisplaySize());
    default:
      return Math.max(left.getDisplaySize(), right.getDisplaySize());
    }
  }
  return left.getDisplaySize();
}
origin: com.h2database/h2

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

case DECRYPT:
  precision = args[2].getPrecision();
  displaySize = args[2].getDisplaySize();
  break;
case COMPRESS:
  precision = args[0].getPrecision();
  displaySize = args[0].getDisplaySize();
  break;
case CHAR:
    precision += e.getPrecision();
    displaySize = MathUtils.convertLongToInt(
        (long) displaySize + e.getDisplaySize());
    if (precision < 0) {
      precision = Long.MAX_VALUE;
case TRUNCATE:
  precision = args[0].getPrecision();
  displaySize = args[0].getDisplaySize();
  break;
case RAWTOHEX:
origin: com.h2database/h2

@Override
public Expression[] getExpressionColumns(Session session) {
  ExpressionColumn[] expr = new ExpressionColumn[list.length];
  for (int i = 0; i < list.length; i++) {
    Expression e = list[i];
    Column col = new Column("C" + (i + 1),
        e.getType(), e.getPrecision(), e.getScale(),
        e.getDisplaySize());
    expr[i] = new ExpressionColumn(session.getDatabase(), col);
  }
  return expr;
}
origin: apache/ignite

/**
 * @param e Expression to take type from.
 * @return Type.
 */
public static GridSqlType fromExpression(Expression e) {
  if (e.getType() == Value.UNKNOWN)
    return UNKNOWN;
  return fromColumn(new Column(null, e.getType(), e.getPrecision(), e.getScale(), e.getDisplaySize()));
}
origin: com.h2database/h2

long prec = Math.max(l.getPrecision(), r.getPrecision());
int scale = Math.max(l.getScale(), r.getScale());
int displaySize = Math.max(l.getDisplaySize(), r.getDisplaySize());
String columnName = columnNamer.getColumnName(l,i,l.getAlias());
Column col = new Column(columnName, type, prec, scale, displaySize);
origin: com.h2database/h2

      s = Math.max(s, e.getScale());
      p = Math.max(p, e.getPrecision());
      d = Math.max(d, e.getDisplaySize());
      s = Math.max(s, then.getScale());
      p = Math.max(p, then.getPrecision());
      d = Math.max(d, then.getDisplaySize());
      s = Math.max(s, elsePart.getScale());
      p = Math.max(p, elsePart.getPrecision());
      d = Math.max(d, elsePart.getDisplaySize());
t = Value.getHigherOrder(args[1].getType(), args[2].getType());
p = Math.max(args[1].getPrecision(), args[2].getPrecision());
d = Math.max(args[1].getDisplaySize(), args[2].getDisplaySize());
s = Math.max(args[1].getScale(), args[2].getScale());
break;
d = Math.max(args[1].getDisplaySize(), args[2].getDisplaySize());
s = Math.max(args[1].getScale(), args[2].getScale());
break;
s = p0.getScale();
p = p0.getPrecision();
d = p0.getDisplaySize();
if (t == Value.NULL) {
  t = Value.INT;
s = p0.getScale();
origin: com.h2database/h2

displaySize = expr.getDisplaySize();
if (i >= columns.size()) {
  throw DbException
origin: com.h2database/h2

String name = columnNamer.getColumnName(expr,i,expr.getAlias());
long precision = expr.getPrecision();
int displaySize = expr.getDisplaySize();
DataType dt = DataType.getDataType(type);
if (precision > 0 && (dt.defaultPrecision == 0 ||
origin: com.h2database/h2

int displaySize = expr.getDisplaySize();
Column col = new Column(name, type, precision, scale, displaySize);
col.setTable(this, i);
origin: com.h2database/h2

scale = on.getScale();
precision = on.getPrecision();
displaySize = on.getDisplaySize();
origin: com.eventsourcing/h2

@Override
public int getDisplaySize(int i) {
  return expressions[i].getDisplaySize();
}
origin: org.wowtools/h2

@Override
public int getDisplaySize(int i) {
  return expressions[i].getDisplaySize();
}
origin: com.h2database/com.springsource.org.h2

public int getDisplaySize() {
  if (right != null) {
    switch (opType) {
      case CONCAT:
        return MathUtils.convertLongToInt((long) left.getDisplaySize() + (long) right.getDisplaySize());
      default:
        return Math.max(left.getDisplaySize(), right.getDisplaySize());
    }
  }
  return left.getDisplaySize();
}
origin: org.wowtools/h2

@Override
public int getDisplaySize() {
  return getExpression().getDisplaySize();
}
origin: org.apache.ignite/ignite-indexing

/**
 * @param e Expression to take type from.
 * @return Type.
 */
public static GridSqlType fromExpression(Expression e) {
  if (e.getType() == Value.UNKNOWN)
    return UNKNOWN;
  return fromColumn(new Column(null, e.getType(), e.getPrecision(), e.getScale(), e.getDisplaySize()));
}
origin: com.eventsourcing/h2

@Override
public Expression[] getExpressionColumns(Session session) {
  ExpressionColumn[] expr = new ExpressionColumn[list.length];
  for (int i = 0; i < list.length; i++) {
    Expression e = list[i];
    Column col = new Column("C" + (i + 1),
        e.getType(), e.getPrecision(), e.getScale(),
        e.getDisplaySize());
    expr[i] = new ExpressionColumn(session.getDatabase(), col);
  }
  return expr;
}
org.h2.expressionExpressiongetDisplaySize

Javadoc

Get the display size of this expression.

Popular methods of Expression

  • getAlias
    Get the alias name of a column or SQL expression if it is not an aliased 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
  • getColumnName
    Get the column name or alias name of this expression.
  • getBooleanValue,
  • getColumnName,
  • getCost,
  • getNullable,
  • getSQL,
  • getSchemaName,
  • getTableAlias,
  • getTableName,
  • isAutoIncrement

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm 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