/** * Parses the string argument as if it was a long value and returns the * result. Throws NumberFormatException if the string does not represent a * long quantity. * * @param bytes * @param start * @param length a UTF-8 encoded string representation of a long quantity. * @return long the value represented by the argument * @throws NumberFormatException if the argument could not be parsed as a long quantity. */ public static long parseLong(byte[] bytes, int start, int length) { return parseLong(bytes, start, length, 10); }
/** * Parses the byte buffer argument as if it was a long value and returns the * result. Throws NumberFormatException if the string does not represent a * long quantity. * * @param bytes the string byte buffer * @param start * @param length a UTF-8 encoded string representation of a long quantity. * @return long the value represented by the argument * @throws NumberFormatException if the argument could not be parsed as a long quantity. */ public static long parseLong(ByteBuf bytes, int start, int length) { return parseLong(bytes, start, length, 10); }
/** * Parses the string argument as if it was a long value and returns the * result. Throws NumberFormatException if the string does not represent a * long quantity. * * @param bytes * @param start * @param length a UTF-8 encoded string representation of a long quantity. * @return long the value represented by the argument * @throws NumberFormatException if the argument could not be parsed as a long quantity. */ public static long parseLong(byte[] bytes, int start, int length) { return parseLong(bytes, start, length, 10); }
/** * Parses the byte buffer argument as if it was a long value and returns the * result. Throws NumberFormatException if the string does not represent a * long quantity. * * @param bytes the string byte buffer * @param start * @param length a UTF-8 encoded string representation of a long quantity. * @return long the value represented by the argument * @throws NumberFormatException if the argument could not be parsed as a long quantity. */ public static long parseLong(ByteBuf bytes, int start, int length) { return parseLong(bytes, start, length, 10); }
/** * Parses the byte buffer argument as if it was a long value and returns the * result. Throws NumberFormatException if the string does not represent a * long quantity. * * @param bytes the string byte buffer * @return long the value represented by the argument * @throws NumberFormatException if the argument could not be parsed as a long quantity. */ public static long parseLong(ByteBuf bytes) { return parseLong(bytes, bytes.readerIndex(), bytes.readableBytes()); }
/** * Parses the byte buffer argument as if it was a long value and returns the * result. Throws NumberFormatException if the string does not represent a * long quantity. * * @param bytes the string byte buffer * @return long the value represented by the argument * @throws NumberFormatException if the argument could not be parsed as a long quantity. */ public static long parseLong(ByteBuf bytes) { return parseLong(bytes, bytes.readerIndex(), bytes.readableBytes()); }
break; case INT8: datum = DatumFactory.createInt8(NumberUtil.parseLong(buf)); break; case FLOAT4:
break; case INT8: datum = DatumFactory.createInt8(NumberUtil.parseLong(buf)); break; case FLOAT4:
break; case INT8: datum = DatumFactory.createInt8(NumberUtil.parseLong(buf)); break; case FLOAT4:
break; case INT8: datum = DatumFactory.createInt8(NumberUtil.parseLong(buf)); break; case FLOAT4: