metadata_store.go ×5

Frontier kind: Code frontier

unlabeled · c_3f9c1f3baa16

22 tests · 4649 LOC · 201 files · introduces 0 tests · 36 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges36 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
861 ranges4649 lines · 201 files · Browse complete extent
All tests (intent)
22 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.

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

go.temporal.io/server/common/persistence/cassandra/metadata_store.go 36 introduced LOC · 5 ranges

Open complete file

352 ctx context.Context,
353 request *p.InternalListNamespacesRequest,
354 > ) (*p.InternalListNamespacesResponse, error) { metadata_store.go
355 > query := m.session.Query(templateListNamespaceQueryV2, constNamespacePartition).WithContext(ctx)
356 > pageSize := request.PageSize
357 > nextPageToken := request.NextPageToken
358 > response := &p.InternalListNamespacesResponse{}
359 >
360 > for {
361 > iter := query.PageSize(pageSize).PageState(nextPageToken).Iter()
362 > skippedRows := 0
363 >
364 > for {
365 > var name string
366 > var detail []byte
367 > var detailEncoding string
368 > var notificationVersion int64
369 > var isGlobal bool
370 > if !iter.Scan(
371 > nil,
372 > &name,
373 > &detail,
374 > &detailEncoding,
375 > &notificationVersion,
376 > &isGlobal,
377 > ) {
378 > // done iterating over all namespaces in this page
379 > break
380 }
381
391 })
392 }
393 > if len(iter.PageState()) > 0 { metadata_store.go
394 nextPageToken = iter.PageState()
395 > } else { metadata_store.go
396 > nextPageToken = nil
397 > }
398 > if err := iter.Close(); err != nil {
399 return nil, gocql.ConvertError("ListNamespaces", err)
400 }
401
402 > if len(nextPageToken) == 0 { metadata_store.go
403 > // No more records in DB.
404 > break
405 }
406 if skippedRows == 0 {
410 }
411
412 > response.NextPageToken = nextPageToken metadata_store.go
413 > return response, nil
414 }
415