Skip to content

Instantly share code, notes, and snippets.

View ayago's full-sized avatar

Adrian Yago ayago

View GitHub Profile
@ayago
ayago / BindNestedStreamSample.java
Last active August 1, 2019 08:30
Bind/Flat map nested stream
import lombok.extern.slf4j.Slf4j;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import static java.lang.String.format;
import static java.util.Arrays.asList;
@ayago
ayago / GameDataService.java
Last active May 17, 2023 05:12
Java Demonstration on how to perform map reduce from a file to create an aggregation/report
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Objects;
import java.util.Scanner;
import java.util.stream.Stream;
public class GameDataService{
private final GameDataRepository gameDataRepository;