execution_state_map.go ×6

Frontier kind: Code frontier

unlabeled · c_7054542547a3

240 tests · 5055 LOC · 174 files · introduces 0 tests · 32 LOC · 5 files

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges32 lines · 5 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
986 ranges5055 lines · 174 files · Browse complete extent
All tests (intent)
240 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

5 files ranked by introduced lines: 32 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/sql/execution_state_map.go 15 introduced LOC · 6 ranges

Open complete file

79 ret := make(map[int64]*commonpb.DataBlob)
80 for _, row := range rows {
81 > ret[row.ScheduleID] = persistence.NewDataBlob(row.Data, row.DataEncoding) execution_state_map.go
82 > }
83
84 return ret, nil
168 ret := make(map[string]*commonpb.DataBlob)
169 for _, row := range rows {
170 > ret[row.TimerID] = persistence.NewDataBlob(row.Data, row.DataEncoding) execution_state_map.go
171 > }
172
173 return ret, nil
258 ret := make(map[int64]*commonpb.DataBlob)
259 for _, row := range rows {
260 > ret[row.InitiatedID] = persistence.NewDataBlob(row.Data, row.DataEncoding) execution_state_map.go
261 > }
262
263 return ret, nil
349 ret := make(map[int64]*commonpb.DataBlob)
350 for _, row := range rows {
351 > ret[row.InitiatedID] = persistence.NewDataBlob(row.Data, row.DataEncoding) execution_state_map.go
352 > }
353
354 return ret, nil
440 ret := make(map[int64]*commonpb.DataBlob)
441 for _, row := range rows {
442 > ret[row.InitiatedID] = persistence.NewDataBlob(row.Data, row.DataEncoding) execution_state_map.go
443 > }
444
445 return ret, nil
534 ret := make(map[string]persistence.InternalChasmNode)
535 for _, row := range rows {
536 > ret[row.ChasmPath] = persistence.InternalChasmNode{ execution_state_map.go
537 > Metadata: persistence.NewDataBlob(row.Metadata, row.MetadataEncoding),
538 > Data: persistence.NewDataBlob(row.Data, row.DataEncoding),
539 > }
540 > }
541
542 return ret, nil
go.temporal.io/server/common/persistence/serialization/serializer.go 7 introduced LOC · 1 range

Open complete file

598 }
599
600 > func (t *serializerImpl) ChasmNodeFromBlobs(metadata *commonpb.DataBlob, data *commonpb.DataBlob) (*persistencespb.ChasmNode, error) { serializer.go
601 > result := &persistencespb.ChasmNode{
602 > Metadata: &persistencespb.ChasmNodeMetadata{},
603 > Data: data,
604 > }
605 > return result, Decode(metadata, result.Metadata)
606 > }
607
608 func (t *serializerImpl) ChasmNodeToBlob(node *persistencespb.ChasmNode) (*commonpb.DataBlob, error) {
go.temporal.io/server/api/persistence/v1/chasm.pb.go 6 introduced LOC · 1 range

Open complete file

98 }
99
100 > func (x *ChasmNodeMetadata) Reset() { chasm.pb.go
101 > *x = ChasmNodeMetadata{}
102 > mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[1]
103 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
104 > ms.StoreMessageInfo(mi)
105 > }
106
107 func (x *ChasmNodeMetadata) String() string {
go.temporal.io/server/common/persistence/execution_manager.go 2 introduced LOC · 1 range

Open complete file

1196 node, err = m.serializer.ChasmNodeFromBlob(internal.CassandraBlob)
1197 } else {
1198 > node, err = m.serializer.ChasmNodeFromBlobs(internal.Metadata, internal.Data) execution_manager.go
1199 > }
1200 if err != nil {
1201 return nil, err
go.temporal.io/server/common/persistence/sql/execution_state_non_map.go 2 introduced LOC · 1 range

Open complete file

74 var ret = make([]string, len(rows))
75 for i, s := range rows {
76 > ret[i] = s.SignalID execution_state_non_map.go
77 > }
78 return ret, nil
79 }