/** * Parses the byte array argument as if it was a double value and returns the * result. Throws NumberFormatException if the byte buffer does not represent a * double value. * * @return double, the value represented by the argument * @throws NumberFormatException if the argument could not be parsed as a double */ public static double parseDouble(ByteBuf bytes) { return parseDouble(bytes, bytes.readerIndex(), bytes.readableBytes()); }
/** * Parses the byte array argument as if it was a double value and returns the * result. Throws NumberFormatException if the byte buffer does not represent a * double value. * * @return double, the value represented by the argument * @throws NumberFormatException if the argument could not be parsed as a double */ public static double parseDouble(ByteBuf bytes) { return parseDouble(bytes, bytes.readerIndex(), bytes.readableBytes()); }
break; case FLOAT8: datum = DatumFactory.createFloat8(NumberUtil.parseDouble(buf)); break; case TEXT: {
break; case FLOAT8: datum = DatumFactory.createFloat8(NumberUtil.parseDouble(buf)); break; case TEXT: {
break; case FLOAT8: datum = DatumFactory.createFloat8(NumberUtil.parseDouble(buf)); break; case TEXT: {
break; case FLOAT8: datum = DatumFactory.createFloat8(NumberUtil.parseDouble(buf)); break; case TEXT: {
return parseDouble(bytes.array(), start, length);
return parseDouble(bytes.array(), start, length);
case FLOAT8: datum = bytes == null || bytes.length == 0 ? NullDatum.get() : DatumFactory.createFloat8(NumberUtil.parseDouble(bytes, 0, bytes.length)); break; case TEXT:
case FLOAT8: datum = bytes == null || bytes.length == 0 ? NullDatum.get() : DatumFactory.createFloat8(NumberUtil.parseDouble(bytes, 0, bytes.length)); break; case TEXT:
case FLOAT8: datum = isNull(bytes, offset, length, nullCharacters) ? NullDatum.get() : DatumFactory.createFloat8(NumberUtil.parseDouble(bytes, offset, length)); break; case TEXT: {
case FLOAT8: datum = isNull(bytes, offset, length, nullCharacters) ? NullDatum.get() : DatumFactory.createFloat8(NumberUtil.parseDouble(bytes, offset, length)); break; case TEXT: {
case FLOAT8: datum = isNull(bytes, offset, length, nullCharacters) ? NullDatum.get() : DatumFactory.createFloat8(NumberUtil.parseDouble(bytes, offset, length)); break; case TEXT: {