Package com.djrapitops.plan
Class DataSvc
java.lang.Object
com.djrapitops.plan.DataSvc
- All Implemented Interfaces:
DataService
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.djrapitops.plan.DataService
DataService.Pipeline
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<K,
A, B> Optional<B> <K,
T> Optional<T> <T> Optional<T>
pullWithoutId
(Class<T> type) <K,
T> void <K,
T> DataService registerDatabasePullSource
(Class<K> identifierType, Class<T> type, Function<K, Query<T>> source) <T> DataService
registerDatabasePullSource
(Class<T> type, Supplier<Query<T>> source) <K,
T> DataService registerDatabaseSink
(Class<K> identifierType, Class<T> type, BiFunction<K, T, Transaction> consumer) <K,
A, B> DataService registerMapper
(Class<K> identifierType, Class<A> from, Class<B> to, BiFunction<K, A, B> mapper) <K,
A, B> DataService registerMapper
(Class<K> identifierType, Class<A> from, Class<B> to, Function<A, B> mapper) <K,
Y, A, B> DataService registerMapper
(Class<K> fromIdentifier, Class<A> from, Class<Y> toIdentifier, Class<B> to, TriConsumer<K, A, BiConsumer<Y, B>> mapper) <K,
T> DataService registerPullSource
(Class<K> identifierType, Class<T> type, Function<K, T> source) <T> DataService
registerPullSource
(Class<T> type, Supplier<T> source) <K,
T> DataService registerSink
(Class<K> identifierType, Class<T> type, BiConsumer<K, T> consumer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.djrapitops.plan.DataService
push, registerDataServiceMapper, registerOptionalMapper, registerOptionalPullSource
-
Constructor Details
-
DataSvc
-
-
Method Details
-
push
- Specified by:
push
in interfaceDataService
-
map
- Specified by:
map
in interfaceDataService
-
registerMapper
public <K,A, DataService registerMapperB> (Class<K> identifierType, Class<A> from, Class<B> to, BiFunction<K, A, B> mapper) - Specified by:
registerMapper
in interfaceDataService
-
registerMapper
public <K,A, DataService registerMapperB> (Class<K> identifierType, Class<A> from, Class<B> to, Function<A, B> mapper) - Specified by:
registerMapper
in interfaceDataService
-
registerMapper
public <K,Y, DataService registerMapperA, B> (Class<K> fromIdentifier, Class<A> from, Class<Y> toIdentifier, Class<B> to, TriConsumer<K, A, BiConsumer<Y, B>> mapper) - Specified by:
registerMapper
in interfaceDataService
-
registerSink
public <K,T> DataService registerSink(Class<K> identifierType, Class<T> type, BiConsumer<K, T> consumer) - Specified by:
registerSink
in interfaceDataService
-
registerDatabaseSink
public <K,T> DataService registerDatabaseSink(Class<K> identifierType, Class<T> type, BiFunction<K, T, Transaction> consumer) - Specified by:
registerDatabaseSink
in interfaceDataService
-
pull
- Specified by:
pull
in interfaceDataService
-
pullWithoutId
- Specified by:
pullWithoutId
in interfaceDataService
-
registerPullSource
public <K,T> DataService registerPullSource(Class<K> identifierType, Class<T> type, Function<K, T> source) - Specified by:
registerPullSource
in interfaceDataService
-
registerDatabasePullSource
public <K,T> DataService registerDatabasePullSource(Class<K> identifierType, Class<T> type, Function<K, Query<T>> source) - Specified by:
registerDatabasePullSource
in interfaceDataService
-
registerPullSource
- Specified by:
registerPullSource
in interfaceDataService
-
registerDatabasePullSource
- Specified by:
registerDatabasePullSource
in interfaceDataService
-