AbsaOSS / AbsaOSS/cobrix

Add the ability to reassemble a multi-segment file

Offen
#612 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @yruslan Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Scala
Sterne
170
Forks
96
Ø Merge
57 Min.
Gemergte PRs (30 T.)
2

Beschreibung

## Background
Multisegment files often have this structure:
```
file header record
segment header record
main segment record
child1 segment record
child2 segment record
...
segment footer record
segment header record
main segment record
child1 segment record
child2 segment record
...
segment footer record
file footer record
```

## Feature
Implement options that would allow reassembling multiple segment into records like this:
```
file header | segment header | main segment | child1 segment | child2 segment | segment footer | file footer
file header | segment header | main segment | child1 segment | child2 segment | segment footer | file footer
file header | segment header | main segment | child1 segment | child2 segment | segment footer | file footer
```

Not every type of segment should be present. The only mandatory segment is the main segment of a record.

## Proposed Solution
This kind of processing is possible using windowing functions. But this can be very slow.

Adding support for such a processing on the record reader level can significantly improve the performance.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.