org.h2.value.Value.getDouble()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(108)

本文整理了Java中org.h2.value.Value.getDouble()方法的一些代码示例,展示了Value.getDouble()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Value.getDouble()方法的具体详情如下:
包路径:org.h2.value.Value
类名称:Value
方法名:getDouble

Value.getDouble介绍

暂无

代码示例

代码示例来源:origin: com.h2database/h2

@Override
public Value divide(Value v) {
  return ValueTime.fromNanos((long) (nanos / v.getDouble()));
}

代码示例来源:origin: com.h2database/h2

@Override
public Value multiply(Value v) {
  return ValueTime.fromNanos((long) (nanos * v.getDouble()));
}

代码示例来源:origin: apache/ignite

/**
 * @param val Value.
 */
public GridH2Double(Value val) {
  assert val.getType() == Value.DOUBLE : val.getType();
  x = val.getDouble();
}

代码示例来源:origin: com.h2database/h2

/**
 * Returns the value of the specified column as a double.
 *
 * @param columnIndex (1,2,...)
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
@Override
public double getDouble(int columnIndex) throws SQLException {
  try {
    debugCodeCall("getDouble", columnIndex);
    return get(columnIndex).getDouble();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: com.h2database/h2

/**
 * Returns the value of the specified column as a double.
 *
 * @param columnLabel the column label
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
@Override
public double getDouble(String columnLabel) throws SQLException {
  try {
    debugCodeCall("getDouble", columnLabel);
    return get(columnLabel).getDouble();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: com.h2database/h2

return type.cast(value.getFloat());
} else if (type == Double.class) {
  return type.cast(value.getDouble());
} else if (type == Date.class) {
  return type.cast(value.getDate());

代码示例来源:origin: apache/ignite

double double2 = v.getDouble();

代码示例来源:origin: com.h2database/h2

break;
case ACOS:
  result = ValueDouble.get(Math.acos(v0.getDouble()));
  break;
case ASIN:
  result = ValueDouble.get(Math.asin(v0.getDouble()));
  break;
case ATAN:
  result = ValueDouble.get(Math.atan(v0.getDouble()));
  break;
case CEILING:
  result = ValueDouble.get(Math.ceil(v0.getDouble()));
  break;
case COS:
  result = ValueDouble.get(Math.cos(v0.getDouble()));
  break;
case COSH:
  result = ValueDouble.get(Math.cosh(v0.getDouble()));
  break;
case COT: {
  double d = Math.tan(v0.getDouble());
  if (d == 0.0) {
    throw DbException.get(ErrorCode.DIVISION_BY_ZERO_1, getSQL());
  result = ValueDouble.get(Math.toDegrees(v0.getDouble()));
  break;
case EXP:
  result = ValueDouble.get(Math.exp(v0.getDouble()));
  break;

代码示例来源:origin: com.h2database/h2

break;
case Value.DOUBLE: {
  double x = v.getDouble();
  if (x == 1.0d) {
    buff.put((byte) (DOUBLE_0_1 + 1));

代码示例来源:origin: apache/ignite

PageUtils.putLong(pageAddr, off + 1, Double.doubleToLongBits(val.getDouble()));
return size + 1;

代码示例来源:origin: com.h2database/h2

case ATAN2:
  result = ValueDouble.get(
      Math.atan2(v0.getDouble(), v1.getDouble()));
  break;
case BITAND:
      v0.getDouble(), v1.getDouble()));
  break;
case ROUND: {
  double f = v1 == null ? 1. : Math.pow(10., v1.getDouble());
  double middleResult = v0.getDouble() * f;
    result = ValueTimestamp.fromDateValueAndNanos(ts.getDateValue(), 0);
  } else {
    double d = v0.getDouble();
    int p = v1 == null ? 0 : v1.getInt();
    double f = Math.pow(10., p);

代码示例来源:origin: com.h2database/h2

double x = v.getDouble();
if (count == 1) {
  mean = x;

代码示例来源:origin: org.wowtools/h2

@Override
public Value divide(Value v) {
  return ValueTime.fromNanos((long) (nanos / v.getDouble()));
}

代码示例来源:origin: com.eventsourcing/h2

@Override
public Value divide(Value v) {
  return ValueTime.fromNanos((long) (nanos / v.getDouble()));
}

代码示例来源:origin: com.eventsourcing/h2

@Override
public Value multiply(Value v) {
  return ValueTime.fromNanos((long) (nanos * v.getDouble()));
}

代码示例来源:origin: org.wowtools/h2

@Override
public Value multiply(Value v) {
  return ValueTime.fromNanos((long) (nanos * v.getDouble()));
}

代码示例来源:origin: org.apache.ignite/ignite-indexing

/**
 * @param val Value.
 */
public GridH2Double(Value val) {
  assert val.getType() == Value.DOUBLE : val.getType();
  x = val.getDouble();
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

/**
 * Returns the value of the specified column as a double.
 * 
 * @param columnIndex (1,2,...)
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
public double getDouble(int columnIndex) throws SQLException {
  try {
    debugCodeCall("getDouble", columnIndex);
    return get(columnIndex).getDouble();
  } catch (Throwable e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: com.h2database/com.springsource.org.h2

/**
 * Returns the value of the specified column as a double.
 * 
 * @param columnName the name of the column label
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
public double getDouble(String columnName) throws SQLException {
  try {
    debugCodeCall("getDouble", columnName);
    return get(columnName).getDouble();
  } catch (Throwable e) {
    throw logAndConvert(e);
  }
}

代码示例来源:origin: org.wowtools/h2

/**
 * Returns the value of the specified column as a double.
 *
 * @param columnIndex (1,2,...)
 * @return the value
 * @throws SQLException if the column is not found or if the result set is
 *             closed
 */
@Override
public double getDouble(int columnIndex) throws SQLException {
  try {
    debugCodeCall("getDouble", columnIndex);
    return get(columnIndex).getDouble();
  } catch (Exception e) {
    throw logAndConvert(e);
  }
}

相关文章

微信公众号

最新文章

更多