/- ( ).
java UDF (User Defined Function) Pig. UDF , . , char. , char char. --.
. , , TAB ('\ t') 9. string arg ( "9" ) ro int, int char.
int tab = Integer.parseInt(args[1]);
char ch = (char) tab;
System.out.println("[" + ch + "]");
"9":
[ ]
Not the most pleasant solution, but you do not need to encode all possible control characters for your code. But keep in mind that the caller is using the correct decompression representation of ctrl char.
source
share