Skip to content

Commit 777d049

Browse files
committed
write parent tag classes
1 parent c1c844e commit 777d049

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/scala/ldbc/snb/datagen/generator/serializers/StaticOutputStream.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class StaticOutputStream(
4141
}
4242

4343
def writeTagHierarchy(tag: raw.Tag): Unit = {
44-
val classId = tag.`TypeTagClassId`
44+
var classId = tag.`TypeTagClassId`
4545
while (classId != -1 && !exportedClasses.contains(classId)) {
4646
exportedClasses.add(classId)
4747
val classParent = Dictionaries.tags.getClassParent(classId)
@@ -53,6 +53,7 @@ class StaticOutputStream(
5353
if (classParent != -1) Some(classParent) else None
5454
)
5555
tagClassStream.write(rawTagClass)
56+
classId = classParent.toInt
5657
}
5758
}
5859

0 commit comments

Comments
 (0)