![]() The zap SegmentBase struct is a refactoring of the zap Segment into the subset of fields that are needed for read-only ops, without any persistence related info. This allows us to use zap's optimized data encoding as scorch's in-memory segments. The zap Segment struct now embeds a zap SegmentBase struct, and layers on persistence. Both the zap Segment and zap SegmentBase implement scorch's Segment interface. |
||
---|---|---|
.. | ||
mem | ||
zap | ||
empty.go | ||
int_test.go | ||
int.go | ||
segment.go |