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

Method Keys

db/journal/store.go:245–256  ·  view source on GitHub ↗
(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

243}
244
245func (s *Store) Keys(ctx context.Context, key string) ([]string, error) {
246 if err := s.load(ctx); err != nil {
247 return nil, err
248 }
249 s.mu.RLock()
250 keys := make([]string, 0, len(s.table))
251 for key := range s.table {
252 keys = append(keys, key)
253 }
254 s.mu.RUnlock()
255 return keys, nil
256}
257
258func (s *Store) Values(ctx context.Context) ([]any, error) {
259 if err := s.load(ctx); err != nil {

Callers 2

maybeConvertToUnionMethod · 0.80
buildScodeMethod · 0.80

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected