Class AbstractPartitionWriter.DuplicateKeyPrinter

java.lang.Object
com.linkedin.venice.hadoop.task.datawriter.AbstractPartitionWriter.DuplicateKeyPrinter
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
AbstractPartitionWriter

public static class AbstractPartitionWriter.DuplicateKeyPrinter extends Object implements AutoCloseable, Closeable
Using Avro Json encoder to print duplicate keys in case there are tons of duplicate keys, only print first MAX_NUM_OF_LOG of them so that it won't pollute Reducer's log. N.B. We assume that this is an Avro record here. (Vson is considered as Avro as well from Reducer's perspective) We should update this method once Venice supports other format in the future
  • Method Details