255256257258259260261262
tuple.setTuple(TupleFactory.getInstance().newTuple(obj)); return tuple; } private String pigTypeToJson(PigTuple obj) { ContentBuilder.generate(out, new PigValueWriter(true)).value(obj).flush().close(); return out.bytes().toString(); }
206207208209210211212213
tuple.setTuple(TupleFactory.getInstance().newTuple(obj)); return tuple; } private String pigTypeToJson(PigTuple obj) { ContentBuilder.generate(out, new PigValueWriter(false)).value(obj).flush().close(); return out.bytes().toString(); }