@Override public void write(Writable w) throws IOException { if (!initialized) { initialized = true; init(); } if (w instanceof HiveBytesArrayWritable) { HiveBytesArrayWritable hbaw = ((HiveBytesArrayWritable) w); repository.writeProcessedToIndex(hbaw.getContent()); } else { // we could allow custom BAs throw new EsHadoopIllegalArgumentException(String.format("Unexpected type; expected [%s], received [%s]", HiveBytesArrayWritable.class, w)); } }
entry.add(StringUtils.toUTF(String.format(baseFormat, encodedId))); writeProcessedToIndex(entry);
@Override public void write(Writable w) throws IOException { if (!initialized) { initialized = true; init(); } if (w instanceof HiveBytesArrayWritable) { HiveBytesArrayWritable hbaw = ((HiveBytesArrayWritable) w); repository.writeProcessedToIndex(hbaw.getContent()); } else { // we could allow custom BAs throw new EsHadoopIllegalArgumentException(String.format("Unexpected type; expected [%s], received [%s]", HiveBytesArrayWritable.class, w)); } }
entry.add(StringUtils.toUTF(String.format(baseFormat, encodedId))); writeProcessedToIndex(entry);
entry.add(StringUtils.toUTF(String.format(baseFormat, encodedId))); writeProcessedToIndex(entry);
entry.add(StringUtils.toUTF(String.format(baseFormat, encodedId))); writeProcessedToIndex(entry);
entry.reset(); entry.add(StringUtils.toUTF(String.format(format, sq.next()[0]))); writeProcessedToIndex(entry);