-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement our own iterator for Bucket.Entry: #2196
Changes from 5 commits
d8a3521
bcff18c
72213cf
9ecb8c1
594f28e
6002b5a
690e919
7aca965
784af87
87ef537
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,9 +13,11 @@ | |
import com.bakdata.conquery.models.events.stores.root.ColumnStore; | ||
import com.bakdata.conquery.models.exceptions.JSONException; | ||
import com.bakdata.conquery.models.identifiable.CentralRegistry; | ||
import lombok.SneakyThrows; | ||
import org.junit.jupiter.api.Test; | ||
|
||
class CBlockTest { | ||
@SneakyThrows | ||
@Test | ||
public void serialize() throws IOException, JSONException { | ||
final CentralRegistry registry = new CentralRegistry(); | ||
|
@@ -40,7 +42,9 @@ public void serialize() throws IOException, JSONException { | |
final Import imp = new Import(table); | ||
imp.setName("import"); | ||
|
||
final Bucket bucket = new Bucket(0, 0, 10, new ColumnStore[0], Collections.emptySet(),new int[10], new int[10], imp); | ||
concept.initElements(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ist das nötig oder fehlt das einfach? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ich verstehe nicht warum es davor geklappt hat, aber es fehlte tatsächlich, der deserializer geht ja über alle elemente drüber und greift dann auf das konzept zu. |
||
|
||
final Bucket bucket = new Bucket(0, 0, 10, new ColumnStore[0], Collections.emptySet(), new int[10], new int[10], imp); | ||
|
||
|
||
final CBlock cBlock = CBlock.createCBlock(connector, bucket, 10); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wenn das Konzept null ist dann tritt ein NullException später in
concept.getElementByLocalId
auf.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Das Konzept kann nicht null sein und wenn es null wäre, wäre es ein Fehler, weil wir dann einen CBlock ohne Konztep hätten