Documentation
¶
Overview ¶
Package compact implements the core of span-compact: it deduplicates NDJSON streams on a user-defined field, keeping one record per key chosen by a selectable strategy. Built for the 10M-100M record range: uses an external sort instead of in-memory hash maps, so memory usage stays bounded.
Strategies:
first keep the first record seen for a key last keep the last record seen random keep a uniformly random record (reservoir over the group) min keep the record with the smallest -sort-key value max keep the record with the largest -sort-key value
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.