Interface Mapper<ID,R>

All Superinterfaces:
Function<Iterable<ID>,org.reactivestreams.Publisher<Map<ID,R>>>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Mapper<ID,R> extends Function<Iterable<ID>,org.reactivestreams.Publisher<Map<ID,R>>>
  • Method Details

    • cached

      static <ID, R> Mapper<ID,R> cached(Mapper<ID,R> mapper)
    • cached

      static <ID, R> Mapper<ID,R> cached(Mapper<ID,R> mapper, Supplier<Map<Iterable<ID>,org.reactivestreams.Publisher<Map<ID,R>>>> cacheSupplier)
    • cached

      static <ID, R> Mapper<ID,R> cached(Mapper<ID,R> mapper, Duration ttl)
    • cached

      static <ID, R> Mapper<ID,R> cached(Mapper<ID,R> mapper, Supplier<Map<Iterable<ID>,org.reactivestreams.Publisher<Map<ID,R>>>> cacheSupplier, Duration ttl)
    • oneToOne

      static <ID, R> Mapper<ID,R> oneToOne(Function<List<ID>,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults)
    • oneToOne

      static <ID, IDC extends Collection<ID>, R> Mapper<ID,R> oneToOne(Function<IDC,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, Supplier<IDC> idCollectionFactory)
    • oneToOne

      static <ID, R> Mapper<ID,R> oneToOne(Function<List<ID>,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, Function<ID,R> defaultResultProvider)
    • oneToOne

      static <ID, R> Mapper<ID,R> oneToOne(Function<List<ID>,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, Function<ID,R> defaultResultProvider, MapFactory<ID,R> mapFactory)
    • oneToOne

      static <ID, IDC extends Collection<ID>, R> Mapper<ID,R> oneToOne(Function<IDC,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, Function<ID,R> defaultResultProvider, Supplier<IDC> idCollectionFactory)
    • oneToOne

      static <ID, IDC extends Collection<ID>, R> Mapper<ID,R> oneToOne(Function<IDC,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, Function<ID,R> defaultResultProvider, Supplier<IDC> idCollectionFactory, MapFactory<ID,R> mapFactory)
    • oneToMany

      static <ID, R> Mapper<ID,List<R>> oneToMany(Function<List<ID>,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults)
    • oneToMany

      static <ID, R> Mapper<ID,List<R>> oneToMany(Function<List<ID>,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, MapFactory<ID,List<R>> mapFactory)
    • oneToMany

      static <ID, IDC extends Collection<ID>, R> Mapper<ID,List<R>> oneToMany(Function<IDC,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, Supplier<IDC> idCollectionFactory)
    • oneToMany

      static <ID, IDC extends Collection<ID>, R> Mapper<ID,List<R>> oneToMany(Function<IDC,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, Supplier<IDC> idCollectionFactory, MapFactory<ID,List<R>> mapFactory)
    • oneToManyAsSet

      static <ID, R> Mapper<ID,Set<R>> oneToManyAsSet(Function<Set<ID>,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults)
    • oneToManyAsSet

      static <ID, R> Mapper<ID,Set<R>> oneToManyAsSet(Function<Set<ID>,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, MapFactory<ID,Set<R>> mapFactory)
    • oneToManyAsSet

      static <ID, IDC extends Collection<ID>, R> Mapper<ID,Set<R>> oneToManyAsSet(Function<IDC,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, Supplier<IDC> idCollectionFactory)
    • oneToManyAsSet

      static <ID, IDC extends Collection<ID>, R> Mapper<ID,Set<R>> oneToManyAsSet(Function<IDC,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, Supplier<IDC> idCollectionFactory, MapFactory<ID,Set<R>> mapFactory)
    • oneToMany

      static <ID, IDC extends Collection<ID>, R, RC extends Collection<R>> Mapper<ID,RC> oneToMany(Function<IDC,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, Supplier<RC> collectionFactory, Supplier<IDC> idCollectionFactory)
    • oneToMany

      static <ID, IDC extends Collection<ID>, R, RC extends Collection<R>> Mapper<ID,RC> oneToMany(Function<IDC,org.reactivestreams.Publisher<R>> queryFunction, Function<R,ID> idExtractorFromQueryResults, Supplier<RC> collectionFactory, Supplier<IDC> idCollectionFactory, MapFactory<ID,RC> mapFactory)