MCPcopy Create free account
hub / github.com/brimdata/super / pruneObject

Function pruneObject

sio/csupio/vectorreader.go:122–130  ·  view source on GitHub ↗
(sctx *super.Context, mf *metafilter, o *csup.Object)

Source from the content-addressed store, hash-verified

120}
121
122func pruneObject(sctx *super.Context, mf *metafilter, o *csup.Object) bool {
123 vals := o.ProjectMetadata(sctx, mf.projection)
124 for _, val := range vals {
125 if mf.filter.Eval(val).Ptr().AsBool() {
126 return false
127 }
128 }
129 return true
130}
131
132func (v *VectorReader) close() error {
133 if v.hasClosed {

Callers 1

ConcurrentPullMethod · 0.85

Calls 4

ProjectMetadataMethod · 0.80
AsBoolMethod · 0.80
PtrMethod · 0.80
EvalMethod · 0.65

Tested by

no test coverage detected