private static Collection<HBaseProtos.NameBytesPair>
    buildNameBytesPairs(Map<String, byte[]> attributes) {
    if (attributes == null) {
      return Collections.emptySet();
    }
    return attributes.entrySet().stream().map(attr -> HBaseProtos.NameBytesPair.newBuilder()
      .setName(attr.getKey()).setValue(ByteString.copyFrom(attr.getValue())).build())
      .collect(Collectors.toSet());
  }
This implementation is specific to slowLog event. This consumes slowLog event from disruptor
and inserts records to EvictingQueue.
@param namedQueuePayload namedQueue payload from disruptor ring buffer
hbase-server/src/main/java/org/apache/hadoop/hbase/namequeues/impl/SlowLogQueueService.java