CatgirlIntelligenceAgency/code/tools
Viktor Lofgren e49ba887e9 (crawl data) Add compatibility layer for old crawl data format
The new converter logic assumes that the crawl data is ordered where the domain record comes first, and then a sequence of document records.  This is true for the new parquet format, but not for the old zstd/gson format.

To make the new converter compatible with the old format, a specialized reader is introduced that scans for the domain record before running through the sequence of document records; and presenting them in the new order.

This is slower than just reading the file beginning to end, so in order to retain performance when this ordering isn't necessary, a CompatibilityLevel flag is added to CrawledDomainReader, permitting the caller to decide how compatible the data needs to be.

Down the line when all the old data is purged, this should be removed, as it amounts to technical debt.
2024-01-08 19:16:49 +01:00
..
crawl-data-unfcker (crawl data) Add compatibility layer for old crawl data format 2024-01-08 19:16:49 +01:00
experiment-runner (crawl data) Add compatibility layer for old crawl data format 2024-01-08 19:16:49 +01:00
load-test (build) Move unit test configuration to root build.gradle 2023-10-04 12:46:22 +02:00
screenshot-capture-tool (screenshot-capture-tool) Make screenshot-capture-tool cooperate with docker 2023-11-01 16:38:55 +01:00
stackexchange-converter (build) Move unit test configuration to root build.gradle 2023-10-04 12:46:22 +02:00
term-frequency-extractor (build) Move unit test configuration to root build.gradle 2023-10-04 12:46:22 +02:00