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

Method BeginContainer

scode/builder.go:39–45  ·  view source on GitHub ↗

BeginContainer opens a new container.

()

Source from the content-addressed store, hash-verified

37
38// BeginContainer opens a new container.
39func (b *Builder) BeginContainer() {
40 // Allocate one byte for the container tag. When EndContainer writes
41 // the tag, it will arrange for additional space if required.
42 b.bytes = append(b.bytes, 0)
43 // Push the offset of the container body onto the stack.
44 b.containers = append(b.containers, len(b.bytes))
45}
46
47// EndContainer closes the most recently opened container. It panics if the
48// receiver has no open container.

Callers 15

TestNormalizeSetFunction · 0.95
TestValueValidateFunction · 0.95
TestBuilderFunction · 0.95
evalMethod · 0.95
toRecordMethod · 0.95
BuildFusionFunction · 0.80
BeginUnionFunction · 0.80
AppendMethod · 0.80
SerializeMethod · 0.80
SerializeMethod · 0.80
SerializeMethod · 0.80
SerializeMethod · 0.80

Implementers 15

DynamicBuildervector/builder.go
recordBuildervector/builder.go
arraySetBuildervector/builder.go
mapBuildervector/builder.go
unionBuildervector/builder.go
fusionBuildervector/builder.go
enumBuildervector/builder.go
intBuildervector/builder.go
uintBuildervector/builder.go
floatBuildervector/builder.go
boolBuildervector/builder.go
bytesStringTypeBuildervector/builder.go

Calls

no outgoing calls

Tested by 3

TestNormalizeSetFunction · 0.76
TestValueValidateFunction · 0.76
TestBuilderFunction · 0.76