jsonmap

package
v0.0.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InEntityJsonSectionIndices = map[string]int{
	"bool":      0,
	"float64":   1,
	"int64":     2,
	"null":      3,
	"string":    4,
	"symbol":    5,
	"undefined": 6,
}

InEntityJsonSectionIndices maps each section name to its section%02dInst slot in the generated entity. Useful for callers that need to compute SetActiveSections inputs from section names — for example, the marshallgen-driven keelson codec wrappers.

Functions

func CreateSchemaJson

func CreateSchemaJson() (schema *arrow.Schema)

Types

type InEntityJson

type InEntityJson struct {
	// contains filtered or unexported fields
}

func NewInEntityJson

func NewInEntityJson(allocator memory.Allocator, estimatedNumberOfRecords int) (inst *InEntityJson)

func (*InEntityJson) AppendError

func (inst *InEntityJson) AppendError(err error)

func (*InEntityJson) BeginEntity

func (inst *InEntityJson) BeginEntity() *InEntityJson

func (*InEntityJson) Builder

func (inst *InEntityJson) Builder() *array.RecordBuilder

Builder exposes the underlying RecordBuilder so callers can apply shim-level hints (e.g. SetActiveFields on the arrowrowbinary / arrowsparserb / arrowrowcbor backends).

func (*InEntityJson) CheckErrors

func (inst *InEntityJson) CheckErrors() (err error)

func (*InEntityJson) ClearMembershipsHighCardRef

func (inst *InEntityJson) ClearMembershipsHighCardRef()

ClearMembershipsHighCardRef drops every ambient HighCardRef membership, pushed by anyone. It is the discard-everything counterpart to the balanced Push/Pop discipline — for a caller that owns the whole entity (a generated store's DiscardPending) and cannot know how many pushes abandoned frames left behind.

func (*InEntityJson) CommitEntity

func (inst *InEntityJson) CommitEntity() (err error)

func (*InEntityJson) GetSchema

func (inst *InEntityJson) GetSchema() (schema *arrow.Schema)

func (*InEntityJson) GetSectionBool

func (inst *InEntityJson) GetSectionBool() *InEntityJsonSectionBool

func (*InEntityJson) GetSectionFloat64

func (inst *InEntityJson) GetSectionFloat64() *InEntityJsonSectionFloat64

func (*InEntityJson) GetSectionInt64

func (inst *InEntityJson) GetSectionInt64() *InEntityJsonSectionInt64

func (*InEntityJson) GetSectionNull

func (inst *InEntityJson) GetSectionNull() *InEntityJsonSectionNull

func (*InEntityJson) GetSectionString

func (inst *InEntityJson) GetSectionString() *InEntityJsonSectionString

func (*InEntityJson) GetSectionSymbol

func (inst *InEntityJson) GetSectionSymbol() *InEntityJsonSectionSymbol

func (*InEntityJson) GetSectionUndefined

func (inst *InEntityJson) GetSectionUndefined() *InEntityJsonSectionUndefined

func (*InEntityJson) PopMembershipsHighCardRef

func (inst *InEntityJson) PopMembershipsHighCardRef(n int)

PopMembershipsHighCardRef removes the last n ambient HighCardRef memberships (bounds-clamped); balance it against PushMembershipHighCardRef.

func (*InEntityJson) PushMembershipHighCardRef

func (inst *InEntityJson) PushMembershipHighCardRef(id uint64)

PushMembershipHighCardRef adds id to the ambient HighCardRef memberships replayed onto every attribute as it closes, until it is popped (ADR-0112 M1). The stamp scope — one section vs the whole entity — is the caller's to set.

func (*InEntityJson) RollbackEntity

func (inst *InEntityJson) RollbackEntity() (err error)

func (*InEntityJson) SetActiveSections

func (inst *InEntityJson) SetActiveSections(idxs []int)

SetActiveSections marks which section indices BeginEntity should initialise (skipping beginSection for the rest). Pass nil to clear. The hint is a performance optimisation; sending BeginAttribute to an unmarked section produces empty-list bytes at TransferRecords.

func (*InEntityJson) SetId

func (inst *InEntityJson) SetId(blake3hash0 []byte) *InEntityJson

func (*InEntityJson) TransferRecords

func (inst *InEntityJson) TransferRecords(recordsIn []arrow.RecordBatch) (recordsOut []arrow.RecordBatch, err error)

TransferRecords The returned Records must be Release()'d after use.

type InEntityJsonSectionBool

type InEntityJsonSectionBool struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionBool

func NewInEntityJsonSectionBool(builder *array.RecordBuilder, parent *InEntityJson) (inst *InEntityJsonSectionBool)

func (*InEntityJsonSectionBool) Add

func (*InEntityJsonSectionBool) AppendError

func (inst *InEntityJsonSectionBool) AppendError(err error)

func (*InEntityJsonSectionBool) BeginAttribute

func (inst *InEntityJsonSectionBool) BeginAttribute(value1 bool) *InEntityJsonSectionBoolInAttr

func (*InEntityJsonSectionBool) CheckErrors

func (inst *InEntityJsonSectionBool) CheckErrors() (err error)

func (*InEntityJsonSectionBool) EndSection

func (inst *InEntityJsonSectionBool) EndSection() *InEntityJson

type InEntityJsonSectionBoolAttr

type InEntityJsonSectionBoolAttr struct {
	Value bool
}

type InEntityJsonSectionBoolInAttr

type InEntityJsonSectionBoolInAttr struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionBoolInAttr

func NewInEntityJsonSectionBoolInAttr(builder *array.RecordBuilder, parent *InEntityJsonSectionBool) (inst *InEntityJsonSectionBoolInAttr)

func (*InEntityJsonSectionBoolInAttr) AddMembershipMixedLowCardVerbatim

func (inst *InEntityJsonSectionBoolInAttr) AddMembershipMixedLowCardVerbatim(lmv2 []byte, mvhp3 []byte) *InEntityJsonSectionBoolInAttr

func (*InEntityJsonSectionBoolInAttr) AddMembershipMixedLowCardVerbatimP

func (inst *InEntityJsonSectionBoolInAttr) AddMembershipMixedLowCardVerbatimP(lmv2 []byte, mvhp3 []byte)

func (*InEntityJsonSectionBoolInAttr) AppendError

func (inst *InEntityJsonSectionBoolInAttr) AppendError(err error)

func (*InEntityJsonSectionBoolInAttr) EndAttribute

func (*InEntityJsonSectionBoolInAttr) EndAttributeP

func (inst *InEntityJsonSectionBoolInAttr) EndAttributeP()

func (*InEntityJsonSectionBoolInAttr) EndSection

func (inst *InEntityJsonSectionBoolInAttr) EndSection() *InEntityJson

type InEntityJsonSectionFloat64

type InEntityJsonSectionFloat64 struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionFloat64

func NewInEntityJsonSectionFloat64(builder *array.RecordBuilder, parent *InEntityJson) (inst *InEntityJsonSectionFloat64)

func (*InEntityJsonSectionFloat64) Add

func (*InEntityJsonSectionFloat64) AppendError

func (inst *InEntityJsonSectionFloat64) AppendError(err error)

func (*InEntityJsonSectionFloat64) BeginAttribute

func (*InEntityJsonSectionFloat64) CheckErrors

func (inst *InEntityJsonSectionFloat64) CheckErrors() (err error)

func (*InEntityJsonSectionFloat64) EndSection

func (inst *InEntityJsonSectionFloat64) EndSection() *InEntityJson

type InEntityJsonSectionFloat64Attr

type InEntityJsonSectionFloat64Attr struct {
	Value float64
}

type InEntityJsonSectionFloat64InAttr

type InEntityJsonSectionFloat64InAttr struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionFloat64InAttr

func NewInEntityJsonSectionFloat64InAttr(builder *array.RecordBuilder, parent *InEntityJsonSectionFloat64) (inst *InEntityJsonSectionFloat64InAttr)

func (*InEntityJsonSectionFloat64InAttr) AddMembershipMixedLowCardVerbatim

func (inst *InEntityJsonSectionFloat64InAttr) AddMembershipMixedLowCardVerbatim(lmv20 []byte, mvhp21 []byte) *InEntityJsonSectionFloat64InAttr

func (*InEntityJsonSectionFloat64InAttr) AddMembershipMixedLowCardVerbatimP

func (inst *InEntityJsonSectionFloat64InAttr) AddMembershipMixedLowCardVerbatimP(lmv20 []byte, mvhp21 []byte)

func (*InEntityJsonSectionFloat64InAttr) AppendError

func (inst *InEntityJsonSectionFloat64InAttr) AppendError(err error)

func (*InEntityJsonSectionFloat64InAttr) EndAttribute

func (*InEntityJsonSectionFloat64InAttr) EndAttributeP

func (inst *InEntityJsonSectionFloat64InAttr) EndAttributeP()

func (*InEntityJsonSectionFloat64InAttr) EndSection

func (inst *InEntityJsonSectionFloat64InAttr) EndSection() *InEntityJson

type InEntityJsonSectionInt64

type InEntityJsonSectionInt64 struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionInt64

func NewInEntityJsonSectionInt64(builder *array.RecordBuilder, parent *InEntityJson) (inst *InEntityJsonSectionInt64)

func (*InEntityJsonSectionInt64) Add

func (*InEntityJsonSectionInt64) AppendError

func (inst *InEntityJsonSectionInt64) AppendError(err error)

func (*InEntityJsonSectionInt64) BeginAttribute

func (inst *InEntityJsonSectionInt64) BeginAttribute(value23 int64) *InEntityJsonSectionInt64InAttr

func (*InEntityJsonSectionInt64) CheckErrors

func (inst *InEntityJsonSectionInt64) CheckErrors() (err error)

func (*InEntityJsonSectionInt64) EndSection

func (inst *InEntityJsonSectionInt64) EndSection() *InEntityJson

type InEntityJsonSectionInt64Attr

type InEntityJsonSectionInt64Attr struct {
	Value int64
}

type InEntityJsonSectionInt64InAttr

type InEntityJsonSectionInt64InAttr struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionInt64InAttr

func NewInEntityJsonSectionInt64InAttr(builder *array.RecordBuilder, parent *InEntityJsonSectionInt64) (inst *InEntityJsonSectionInt64InAttr)

func (*InEntityJsonSectionInt64InAttr) AddMembershipMixedLowCardVerbatim

func (inst *InEntityJsonSectionInt64InAttr) AddMembershipMixedLowCardVerbatim(lmv24 []byte, mvhp25 []byte) *InEntityJsonSectionInt64InAttr

func (*InEntityJsonSectionInt64InAttr) AddMembershipMixedLowCardVerbatimP

func (inst *InEntityJsonSectionInt64InAttr) AddMembershipMixedLowCardVerbatimP(lmv24 []byte, mvhp25 []byte)

func (*InEntityJsonSectionInt64InAttr) AppendError

func (inst *InEntityJsonSectionInt64InAttr) AppendError(err error)

func (*InEntityJsonSectionInt64InAttr) EndAttribute

func (*InEntityJsonSectionInt64InAttr) EndAttributeP

func (inst *InEntityJsonSectionInt64InAttr) EndAttributeP()

func (*InEntityJsonSectionInt64InAttr) EndSection

func (inst *InEntityJsonSectionInt64InAttr) EndSection() *InEntityJson

type InEntityJsonSectionNull

type InEntityJsonSectionNull struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionNull

func NewInEntityJsonSectionNull(builder *array.RecordBuilder, parent *InEntityJson) (inst *InEntityJsonSectionNull)

func (*InEntityJsonSectionNull) Add

func (*InEntityJsonSectionNull) AppendError

func (inst *InEntityJsonSectionNull) AppendError(err error)

func (*InEntityJsonSectionNull) BeginAttribute

func (*InEntityJsonSectionNull) CheckErrors

func (inst *InEntityJsonSectionNull) CheckErrors() (err error)

func (*InEntityJsonSectionNull) EndSection

func (inst *InEntityJsonSectionNull) EndSection() *InEntityJson

type InEntityJsonSectionNullAttr

type InEntityJsonSectionNullAttr struct {
}

type InEntityJsonSectionNullInAttr

type InEntityJsonSectionNullInAttr struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionNullInAttr

func NewInEntityJsonSectionNullInAttr(builder *array.RecordBuilder, parent *InEntityJsonSectionNull) (inst *InEntityJsonSectionNullInAttr)

func (*InEntityJsonSectionNullInAttr) AddMembershipMixedLowCardVerbatim

func (inst *InEntityJsonSectionNullInAttr) AddMembershipMixedLowCardVerbatim(lmv8 []byte, mvhp9 []byte) *InEntityJsonSectionNullInAttr

func (*InEntityJsonSectionNullInAttr) AddMembershipMixedLowCardVerbatimP

func (inst *InEntityJsonSectionNullInAttr) AddMembershipMixedLowCardVerbatimP(lmv8 []byte, mvhp9 []byte)

func (*InEntityJsonSectionNullInAttr) AppendError

func (inst *InEntityJsonSectionNullInAttr) AppendError(err error)

func (*InEntityJsonSectionNullInAttr) EndAttribute

func (*InEntityJsonSectionNullInAttr) EndAttributeP

func (inst *InEntityJsonSectionNullInAttr) EndAttributeP()

func (*InEntityJsonSectionNullInAttr) EndSection

func (inst *InEntityJsonSectionNullInAttr) EndSection() *InEntityJson

type InEntityJsonSectionString

type InEntityJsonSectionString struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionString

func NewInEntityJsonSectionString(builder *array.RecordBuilder, parent *InEntityJson) (inst *InEntityJsonSectionString)

func (*InEntityJsonSectionString) Add

func (*InEntityJsonSectionString) AppendError

func (inst *InEntityJsonSectionString) AppendError(err error)

func (*InEntityJsonSectionString) BeginAttribute

func (inst *InEntityJsonSectionString) BeginAttribute(value11 string) *InEntityJsonSectionStringInAttr

func (*InEntityJsonSectionString) CheckErrors

func (inst *InEntityJsonSectionString) CheckErrors() (err error)

func (*InEntityJsonSectionString) EndSection

func (inst *InEntityJsonSectionString) EndSection() *InEntityJson

type InEntityJsonSectionStringAttr

type InEntityJsonSectionStringAttr struct {
	Value string
}

type InEntityJsonSectionStringInAttr

type InEntityJsonSectionStringInAttr struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionStringInAttr

func NewInEntityJsonSectionStringInAttr(builder *array.RecordBuilder, parent *InEntityJsonSectionString) (inst *InEntityJsonSectionStringInAttr)

func (*InEntityJsonSectionStringInAttr) AddMembershipMixedLowCardVerbatim

func (inst *InEntityJsonSectionStringInAttr) AddMembershipMixedLowCardVerbatim(lmv12 []byte, mvhp13 []byte) *InEntityJsonSectionStringInAttr

func (*InEntityJsonSectionStringInAttr) AddMembershipMixedLowCardVerbatimP

func (inst *InEntityJsonSectionStringInAttr) AddMembershipMixedLowCardVerbatimP(lmv12 []byte, mvhp13 []byte)

func (*InEntityJsonSectionStringInAttr) AppendError

func (inst *InEntityJsonSectionStringInAttr) AppendError(err error)

func (*InEntityJsonSectionStringInAttr) EndAttribute

func (*InEntityJsonSectionStringInAttr) EndAttributeP

func (inst *InEntityJsonSectionStringInAttr) EndAttributeP()

func (*InEntityJsonSectionStringInAttr) EndSection

func (inst *InEntityJsonSectionStringInAttr) EndSection() *InEntityJson

type InEntityJsonSectionSymbol

type InEntityJsonSectionSymbol struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionSymbol

func NewInEntityJsonSectionSymbol(builder *array.RecordBuilder, parent *InEntityJson) (inst *InEntityJsonSectionSymbol)

func (*InEntityJsonSectionSymbol) Add

func (*InEntityJsonSectionSymbol) AppendError

func (inst *InEntityJsonSectionSymbol) AppendError(err error)

func (*InEntityJsonSectionSymbol) BeginAttribute

func (inst *InEntityJsonSectionSymbol) BeginAttribute(value15 string) *InEntityJsonSectionSymbolInAttr

func (*InEntityJsonSectionSymbol) CheckErrors

func (inst *InEntityJsonSectionSymbol) CheckErrors() (err error)

func (*InEntityJsonSectionSymbol) EndSection

func (inst *InEntityJsonSectionSymbol) EndSection() *InEntityJson

type InEntityJsonSectionSymbolAttr

type InEntityJsonSectionSymbolAttr struct {
	Value string
}

type InEntityJsonSectionSymbolInAttr

type InEntityJsonSectionSymbolInAttr struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionSymbolInAttr

func NewInEntityJsonSectionSymbolInAttr(builder *array.RecordBuilder, parent *InEntityJsonSectionSymbol) (inst *InEntityJsonSectionSymbolInAttr)

func (*InEntityJsonSectionSymbolInAttr) AddMembershipMixedLowCardVerbatim

func (inst *InEntityJsonSectionSymbolInAttr) AddMembershipMixedLowCardVerbatim(lmv16 []byte, mvhp17 []byte) *InEntityJsonSectionSymbolInAttr

func (*InEntityJsonSectionSymbolInAttr) AddMembershipMixedLowCardVerbatimP

func (inst *InEntityJsonSectionSymbolInAttr) AddMembershipMixedLowCardVerbatimP(lmv16 []byte, mvhp17 []byte)

func (*InEntityJsonSectionSymbolInAttr) AppendError

func (inst *InEntityJsonSectionSymbolInAttr) AppendError(err error)

func (*InEntityJsonSectionSymbolInAttr) EndAttribute

func (*InEntityJsonSectionSymbolInAttr) EndAttributeP

func (inst *InEntityJsonSectionSymbolInAttr) EndAttributeP()

func (*InEntityJsonSectionSymbolInAttr) EndSection

func (inst *InEntityJsonSectionSymbolInAttr) EndSection() *InEntityJson

type InEntityJsonSectionUndefined

type InEntityJsonSectionUndefined struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionUndefined

func NewInEntityJsonSectionUndefined(builder *array.RecordBuilder, parent *InEntityJson) (inst *InEntityJsonSectionUndefined)

func (*InEntityJsonSectionUndefined) Add

func (*InEntityJsonSectionUndefined) AppendError

func (inst *InEntityJsonSectionUndefined) AppendError(err error)

func (*InEntityJsonSectionUndefined) BeginAttribute

func (*InEntityJsonSectionUndefined) CheckErrors

func (inst *InEntityJsonSectionUndefined) CheckErrors() (err error)

func (*InEntityJsonSectionUndefined) EndSection

func (inst *InEntityJsonSectionUndefined) EndSection() *InEntityJson

type InEntityJsonSectionUndefinedAttr

type InEntityJsonSectionUndefinedAttr struct {
}

type InEntityJsonSectionUndefinedInAttr

type InEntityJsonSectionUndefinedInAttr struct {
	// contains filtered or unexported fields
}

func NewInEntityJsonSectionUndefinedInAttr

func NewInEntityJsonSectionUndefinedInAttr(builder *array.RecordBuilder, parent *InEntityJsonSectionUndefined) (inst *InEntityJsonSectionUndefinedInAttr)

func (*InEntityJsonSectionUndefinedInAttr) AddMembershipMixedLowCardVerbatim

func (inst *InEntityJsonSectionUndefinedInAttr) AddMembershipMixedLowCardVerbatim(lmv5 []byte, mvhp6 []byte) *InEntityJsonSectionUndefinedInAttr

func (*InEntityJsonSectionUndefinedInAttr) AddMembershipMixedLowCardVerbatimP

func (inst *InEntityJsonSectionUndefinedInAttr) AddMembershipMixedLowCardVerbatimP(lmv5 []byte, mvhp6 []byte)

func (*InEntityJsonSectionUndefinedInAttr) AppendError

func (inst *InEntityJsonSectionUndefinedInAttr) AppendError(err error)

func (*InEntityJsonSectionUndefinedInAttr) EndAttribute

func (*InEntityJsonSectionUndefinedInAttr) EndAttributeP

func (inst *InEntityJsonSectionUndefinedInAttr) EndAttributeP()

func (*InEntityJsonSectionUndefinedInAttr) EndSection

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL