Class LookupServiceTransformKey<KI,KO,V>
java.lang.Object
org.aksw.commons.rx.lookup.LookupServiceTransformKey<KI,KO,V>
- Type Parameters:
KI-KO-V-
- All Implemented Interfaces:
Function<Iterable<KI>, io.reactivex.rxjava3.core.Flowable<Map.Entry<KI,V>>>, LookupService<KI, V>
Create a new LookupService which maps keys to a target domain
before passing them to the delegate service.
- Author:
- raven
-
Constructor Summary
ConstructorsConstructorDescriptionLookupServiceTransformKey(LookupService<KO, V> delegate, Function<? super KI, ? extends KO> keyMapper) -
Method Summary
Modifier and TypeMethodDescriptionstatic <KI,KO, V> LookupService <KI, V> create(LookupService<KO, V> base, Function<? super KI, ? extends KO> keyMapper) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LookupService
cache, cache, defaultForAbsentKeys, fetchItem, fetchList, fetchMap, fetchMap, filterKeys, mapKeys, mapNonNullValues, mapNonNullValues, mapValues, mapValues, partition, requestList, requestMap
-
Constructor Details
-
LookupServiceTransformKey
-
-
Method Details
-
apply
-
create
public static <KI,KO, LookupService<KI,V> V> create(LookupService<KO, V> base, Function<? super KI, ? extends KO> keyMapper)
-