@@ -0,0 +1,558 @@
+/*%0A * To change this template, choose Tools %7C Templates%0A * and open the template in the editor.%0A */%0Apackage pl.edu.icm.coansys.importers.pig.udf;%0A%0Aimport java.io.IOException;%0Aimport org.apache.hadoop.hbase.util.Bytes;%0Aimport org.apache.pig.EvalFunc;%0Aimport org.apache.pig.data.Tuple;%0A%0A/**%0A *%0A * @author akawa%0A */%0Apublic class BytesToCharArray extends EvalFunc%3CString%3E %7B%0A   %0A    @Override%0A    public String exec(Tuple input) throws IOException %7B%0A        byte%5B%5D bytes = (byte%5B%5D) input.get(0);%0A        String s = Bytes.toString(bytes);%0A        return s;%0A    %7D%0A%7D

convert byte[] to String