本文整理了Java中co.cask.cdap.api.common.Bytes.toDouble()
方法的一些代码示例,展示了Bytes.toDouble()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bytes.toDouble()
方法的具体详情如下:
包路径:co.cask.cdap.api.common.Bytes
类名称:Bytes
方法名:toDouble
[英]Return double made from passed bytes.
[中]返回由传递的字节生成的双精度值。
代码示例来源:origin: cdapio/cdap
/**
* Return double made from passed bytes.
* @param bytes byte array
* @return Return double made from passed bytes.
*/
public static double toDouble(final byte [] bytes) {
return toDouble(bytes, 0);
}
代码示例来源:origin: co.cask.cdap/cdap-api-common
/**
* Return double made from passed bytes.
* @param bytes byte array
* @return Return double made from passed bytes.
*/
public static double toDouble(final byte [] bytes) {
return toDouble(bytes, 0);
}
代码示例来源:origin: cdapio/cdap
@Override
@Nullable
public Double getDouble(byte[] column) {
byte[] val = get(column);
return val == null ? null : Bytes.toDouble(columns.get(column));
}
代码示例来源:origin: co.cask.hydrator/core-plugins
return Bytes.toFloat(bytesVal);
case DOUBLE:
return Bytes.toDouble(bytesVal);
case STRING:
return Bytes.toString(bytesVal);
代码示例来源:origin: co.cask.wrangler/wrangler-core
return ((Long) object).doubleValue();
} else if (object instanceof byte[]) {
return Bytes.toDouble((byte[]) object);
} else {
return object;
内容来源于网络,如有侵权,请联系作者删除!