From 44aa2a9a94bc33ef7c5e6d28fb129031bc4d1454 Mon Sep 17 00:00:00 2001 From: AuroraLS3 <24460436+AuroraLS3@users.noreply.github.com> Date: Sun, 21 Nov 2021 13:54:42 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20plan-pla?= =?UTF-8?q?yer-analytics/Plan@e0a4779ab61f7c5ca2b7ba833668e4c4b2dce062=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- all/allclasses-index.html | 640 +++++++++--------- ...Mapping.html => DataService.Pipeline.html} | 8 +- all/com/djrapitops/plan/DataService.html | 296 ++++---- all/com/djrapitops/plan/DataSvc.html | 281 +++++--- ...ataModule.html => DataPipelineModule.html} | 16 +- .../plan/modules/package-summary.html | 2 +- .../djrapitops/plan/modules/package-tree.html | 2 +- all/com/djrapitops/plan/package-summary.html | 6 +- all/com/djrapitops/plan/package-tree.html | 2 +- all/index-all.html | 88 +-- all/member-search-index.js | 2 +- all/overview-tree.html | 4 +- all/type-search-index.js | 2 +- 13 files changed, 731 insertions(+), 618 deletions(-) rename all/com/djrapitops/plan/{DataService.Mapping.html => DataService.Pipeline.html} (96%) rename all/com/djrapitops/plan/modules/{GatheringDataModule.html => DataPipelineModule.html} (93%) diff --git a/all/allclasses-index.html b/all/allclasses-index.html index dcee3fe8a..a308d3fcc 100644 --- a/all/allclasses-index.html +++ b/all/allclasses-index.html @@ -574,572 +574,570 @@ loadScripts(document, 'script');
ExtensionDataBuilder
.Database#init
.Connection
Lang
implementation for in depth help language when /command ? is used.Setting
values that are in "Display_options" section.Lang
implementation for all error pages.Exporter
if something goes wrong with export.Setting
values that are in "Export" section.DataExtension
.DataExtension
implementations.DataExtension
server values periodically.DataExtension
s.ExtensionService
.DataExtension
class.Setting
values that are in "Formatting" section.Formatter
s.NumberProvider
.Lang
implementation for single words.- The service is in charge of two data flows: - - push, given to consumers - - pull, obtained from sources -
- The mappers facilitate a one way type transformation if needed. -
- The interface is very abstract about how data is obtained, - but here are my general ideas of where the abstraction is coming from. - - push cause one or multiple consumers to modify stored data - - pull cause one or multiple suppliers to fetch stored data - - mappers are stateless type transformers in memory -
- Example use-case: - - PlayerJoinEvent is mapped to a generic event - - that generic event is then consumed and mapped until the data is in a database. -
- - Some kind of data is wanted to place on a web page - - It is requested and the suppliers and mappers give the wanted type of data. -
- Further research needed: - - Can this limited type system represent types of data that need parameters - (such as differentiate between two servers data)
static interface
<A,
-B> B
<T> Optional<T>
<S> Optional<S>
<K,
+T> Optional<T>
default <S,
-P> Optional<S>
default <K,
+T> void
push(K identifier,
+ T value)
default <S,
-P> Optional<S>
<S,
-P> Optional<S>
<M> DataService
<K,
+T> void
<M> DataService
registerConsumer(Class<M> type,
- Consumer<M> consumer)
<K,
+T> DataService
registerDatabasePullSource(Class<K> identifierType,
+ Class<T> type,
+ Function<K,Query<T>> source)
<P,
-S> DataService
registerDBSupplier(Class<S> type,
- Class<P> parameterType,
- Function<P,Query<S>> supplierWithParameter)
<T> DataService
registerDatabasePullSource(Class<T> type,
+ Supplier<Query<T>> source)
<A,
+<K,
+T> DataService
+registerDatabaseSink(Class<K> identifierType,
+ Class<T> type,
+ BiFunction<K,T,Transaction> consumer)
+
+<K,
+A,
B> DataService
-registerMapper(Class<A> typeA,
- Class<B> typeB,
+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)
-<P,
-S> DataService
-registerSupplier(Class<S> type,
- Class<P> parameterType,
- Function<P,S> supplierWithParameter)
+<K1,
+K2,
+A,
+B>
DataService
+registerMapper(Class<K1> fromIdentifier,
+ Class<A> from,
+ Class<K2> toIdentifier,
+ Class<B> to,
+ TriConsumer<K1,A,BiConsumer<K2,B>> mapper)
-<S> DataService
-registerSupplier(Class<S> type,
- Supplier<S> supplier)
+<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)
DataService.Mapping
DataService.Pipeline
<A,
-B> B
<S,
-P> Optional<S>
<T> Optional<T>
<A> DataService
<K,
+T> Optional<T>
<A> DataService
registerConsumer(Class<A> type,
- Consumer<A> consumer)
<K,
+T> void
<P,
-S> DataService
registerDBSupplier(Class<S> type,
- Class<P> parameterType,
- Function<P,Query<S>> queryVisitor)
<K,
+T> DataService
registerDatabasePullSource(Class<K> identifierType,
+ Class<T> type,
+ Function<K,Query<T>> source)
<A,
+<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<A> typeA,
- Class<B> typeB,
+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)
-
-<A> DataService
-registerSupplier(Class<A> type,
- Supplier<A> supplier)
-<P,
-S> DataService
-registerSupplier(Class<S> type,
- Class<P> parameterType,
- Function<P,S> supplierWithParameter)
+<K1,
+K2,
+A,
+B>
DataService
+registerMapper(Class<K1> fromIdentifier,
+ Class<A> from,
+ Class<K2> toIdentifier,
+ Class<B> to,
+ TriConsumer<K1,A,BiConsumer<K2,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)
+
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
pull, pull
push
push
in interface DataService
push
in interface DataService
registerMapper
in interface DataService
registerMapper
in interface DataService
registerMapper
in interface DataService
registerSink
in interface DataService
registerDatabaseSink
in interface DataService
pull
in interface DataService
mapTo
in interface DataService
registerPullSource
in interface DataService
registerMapper
in interface DataService
registerDatabasePullSource
in interface DataService
registerConsumer
in interface DataService
registerPullSource
in interface DataService
registerSupplier
in interface DataService
pull
in interface DataService
registerSupplier
in interface DataService
registerDBSupplier
in interface DataService
registerDatabasePullSource
in interface DataService