/** * split a UTF-8 byte array into key and value assuming that the delimilator is at splitpos. * * @param utf utf-8 encoded string * @param key contains key upon the method is returned * @param val contains value upon the method is returned * @param splitPos the split pos * @deprecated use {@link StreamKeyValUtil#splitKeyVal(byte[], Text, Text, int)} * @throws IOException */ @Deprecated public static void splitKeyVal(byte[] utf, Text key, Text val, int splitPos) throws IOException { StreamKeyValUtil.splitKeyVal(utf, key, val, splitPos); }
/** * split a UTF-8 byte array into key and value assuming that the delimilator is at splitpos. * * @param utf utf-8 encoded string * @param start starting offset * @param length no. of bytes * @param key contains key upon the method is returned * @param val contains value upon the method is returned * @param splitPos the split pos * @param separatorLength the length of the separator between key and value * @deprecated use {@link StreamKeyValUtil#splitKeyVal(byte[], int, int, Text, Text, int, int)} * @throws IOException */ @Deprecated public static void splitKeyVal( byte[] utf, int start, int length, Text key, Text val, int splitPos, int separatorLength) throws IOException { StreamKeyValUtil.splitKeyVal(utf, start, length, key, val, splitPos, separatorLength); }