@Override public void writeString(byte[] v, int start, int length) throws IOException { beginPrimitive(); LazyUtils.writeEscaped(output, v, start, length, isEscaped, escapeChar, needsEscape); finishPrimitive(); }
@Override public void writeString(byte[] v) throws IOException { beginPrimitive(); LazyUtils.writeEscaped(output, v, 0, v.length, isEscaped, escapeChar, needsEscape); finishPrimitive(); }
@Override public void writeHiveVarchar(HiveVarchar hiveVarchar) throws IOException { beginPrimitive(); ByteBuffer b = Text.encode(hiveVarchar.getValue()); LazyUtils.writeEscaped(output, b.array(), 0, b.limit(), isEscaped, escapeChar, needsEscape); finishPrimitive(); }
@Override public void writeHiveChar(HiveChar hiveChar) throws IOException { beginPrimitive(); ByteBuffer b = Text.encode(hiveChar.getPaddedValue()); LazyUtils.writeEscaped(output, b.array(), 0, b.limit(), isEscaped, escapeChar, needsEscape); finishPrimitive(); }
writeEscaped(out, t.getBytes(), 0, t.getLength(), escaped, escapeChar, needsEscape); break; HiveCharWritable hc = ((HiveCharObjectInspector) oi).getPrimitiveWritableObject(o); Text t = hc.getPaddedValue(); writeEscaped(out, t.getBytes(), 0, t.getLength(), escaped, escapeChar, needsEscape); break; HiveVarcharWritable hc = ((HiveVarcharObjectInspector)oi).getPrimitiveWritableObject(o); Text t = hc.getTextValue(); writeEscaped(out, t.getBytes(), 0, t.getLength(), escaped, escapeChar, needsEscape); break;
@Override public void writeString(byte[] v) throws IOException { if (index > 0) { output.write(separator); } LazyUtils.writeEscaped(output, v, 0, v.length, isEscaped, escapeChar, needsEscape); index++; }
@Override public void writeString(byte[] v, int start, int length) throws IOException { if (index > 0) { output.write(separator); } LazyUtils.writeEscaped(output, v, start, length, isEscaped, escapeChar, needsEscape); index++; }
@Override public void writeString(byte[] v) throws IOException { if (index > 0) { output.write(separator); } LazyUtils.writeEscaped(output, v, 0, v.length, isEscaped, escapeChar, needsEscape); index++; }
@Override public void writeString(byte[] v) throws IOException { if (index > 0) { output.write(separator); } LazyUtils.writeEscaped(output, v, 0, v.length, isEscaped, escapeChar, needsEscape); index++; }
@Override public void writeString(byte[] v, int start, int length) throws IOException { if (index > 0) { output.write(separator); } LazyUtils.writeEscaped(output, v, start, length, isEscaped, escapeChar, needsEscape); index++; }
@Override public void writeHiveChar(HiveChar hiveChar) throws IOException { if (index > 0) { output.write(separator); } ByteBuffer b = Text.encode(hiveChar.getPaddedValue()); LazyUtils.writeEscaped(output, b.array(), 0, b.limit(), isEscaped, escapeChar, needsEscape); index++; }
@Override public void writeHiveVarchar(HiveVarchar hiveVarchar) throws IOException { if (index > 0) { output.write(separator); } ByteBuffer b = Text.encode(hiveVarchar.getValue()); LazyUtils.writeEscaped(output, b.array(), 0, b.limit(), isEscaped, escapeChar, needsEscape); index++; }
@Override public void writeHiveVarchar(HiveVarchar hiveVarchar) throws IOException { if (index > 0) { output.write(separator); } ByteBuffer b = Text.encode(hiveVarchar.getValue()); LazyUtils.writeEscaped(output, b.array(), 0, b.limit(), isEscaped, escapeChar, needsEscape); index++; }
@Override public void writeString(byte[] v) throws IOException { beginPrimitive(); LazyUtils.writeEscaped(output, v, 0, v.length, isEscaped, escapeChar, needsEscape); finishPrimitive(); }
@Override public void writeString(byte[] v, int start, int length) throws IOException { beginPrimitive(); LazyUtils.writeEscaped(output, v, start, length, isEscaped, escapeChar, needsEscape); finishPrimitive(); }
@Override public void writeHiveVarchar(HiveVarchar hiveVarchar) throws IOException { if (index > 0) { output.write(separator); } ByteBuffer b = Text.encode(hiveVarchar.getValue()); LazyUtils.writeEscaped(output, b.array(), 0, b.limit(), isEscaped, escapeChar, needsEscape); index++; }
@Override public void writeHiveChar(HiveChar hiveChar) throws IOException { if (index > 0) { output.write(separator); } ByteBuffer b = Text.encode(hiveChar.getPaddedValue()); LazyUtils.writeEscaped(output, b.array(), 0, b.limit(), isEscaped, escapeChar, needsEscape); index++; }
@Override public void writeHiveChar(HiveChar hiveChar) throws IOException { if (index > 0) { output.write(separator); } ByteBuffer b = Text.encode(hiveChar.getPaddedValue()); LazyUtils.writeEscaped(output, b.array(), 0, b.limit(), isEscaped, escapeChar, needsEscape); index++; }
@Override public void writeHiveChar(HiveChar hiveChar) throws IOException { beginPrimitive(); ByteBuffer b = Text.encode(hiveChar.getPaddedValue()); LazyUtils.writeEscaped(output, b.array(), 0, b.limit(), isEscaped, escapeChar, needsEscape); finishPrimitive(); }
@Override public void writeHiveVarchar(HiveVarchar hiveVarchar) throws IOException { beginPrimitive(); ByteBuffer b = Text.encode(hiveVarchar.getValue()); LazyUtils.writeEscaped(output, b.array(), 0, b.limit(), isEscaped, escapeChar, needsEscape); finishPrimitive(); }