projects
/
demos
/
kafka
/
training
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
`EndlessConsumer` nimmt jetzt einzelne `ConsumerRecord`s entgegen
[demos/kafka/training]
/
src
/
main
/
java
/
de
/
juplo
/
kafka
/
StateDocument.java
diff --git
a/src/main/java/de/juplo/kafka/StateDocument.java
b/src/main/java/de/juplo/kafka/StateDocument.java
index
2583c8e
..
ae8eb51
100644
(file)
--- a/
src/main/java/de/juplo/kafka/StateDocument.java
+++ b/
src/main/java/de/juplo/kafka/StateDocument.java
@@
-9,14
+9,14
@@
import java.util.List;
import java.util.Map;
import java.util.Map;
-@Document(collection = "stat
istics
")
+@Document(collection = "stat
e
")
@ToString
public class StateDocument
{
@Id
public String id;
@ToString
public class StateDocument
{
@Id
public String id;
- public
long offset = -1l
;
- public Map<String, L
ong> state
;
+ public
Map<String, AdderResult> state
;
+ public Map<String, L
ist<AdderResult>> results
;
public StateDocument()
{
public StateDocument()
{
@@
-26,15
+26,16
@@
public class StateDocument
{
this.id = Integer.toString(partition);
this.state = new HashMap<>();
{
this.id = Integer.toString(partition);
this.state = new HashMap<>();
+ this.results = new HashMap<>();
}
public StateDocument(
Integer partition,
}
public StateDocument(
Integer partition,
- Map<String,
Long
> state,
-
long offset
)
+ Map<String,
AdderResult
> state,
+
Map<String, List<AdderResult>> results
)
{
this.id = Integer.toString(partition);
this.state = state;
{
this.id = Integer.toString(partition);
this.state = state;
- this.
offset = offset
;
+ this.
results = results
;
}
}
}
}