MCPcopy Create free account
hub / github.com/appbaseio/abc / NamespaceCompactor

Struct NamespaceCompactor

importer/commitlog/compactor.go:24–26  ·  view source on GitHub ↗

NamespaceCompactor compact individual segments based on the key which is the source adaptor namespace.

Source from the content-addressed store, hash-verified

22// NamespaceCompactor compact individual segments based on the key which
23// is the source adaptor namespace.
24type NamespaceCompactor struct {
25 log *CommitLog
26}
27
28func (c *NamespaceCompactor) Compact(offset uint64, segments []*Segment) {
29 log.With("num_segments", len(segments)).Infoln("starting compaction...")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected