private static void populateLoadQueue(Deque<LoadQueueItem> ret, Map<byte[], List<Path>> map) {
    map.forEach((k, v) -> v.stream().map(p -> new LoadQueueItem(k, p)).forEachOrdered(ret::add));
  }
Populate the Queue with given HFiles
hbase-server/src/main/java/org/apache/hadoop/hbase/tool/BulkLoadHFilesTool.java