Skip to content

Commit

Permalink
[dbnode] Widen exposure of namespace method (#2952)
Browse files Browse the repository at this point in the history
  • Loading branch information
linasm authored Nov 27, 2020
1 parent c547614 commit 725cdb4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 23 deletions.
45 changes: 30 additions & 15 deletions src/dbnode/storage/storage_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions src/dbnode/storage/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,14 @@ type Namespace interface {

// DocRef returns the doc if already present in a namespace shard.
DocRef(id ident.ID) (doc.Document, bool, error)

// FetchWideEntry retrieves wide entry for an ID for the
// block at time start.
FetchWideEntry(
ctx context.Context,
id ident.ID,
blockStart time.Time,
) (block.StreamedWideEntry, error)
}

// NamespacesByID is a sortable slice of namespaces by ID.
Expand Down Expand Up @@ -372,14 +380,6 @@ type databaseNamespace interface {
start, end time.Time,
) ([][]xio.BlockReader, error)

// FetchWideEntry retrieves the wide entry for an ID for the
// block at time start.
FetchWideEntry(
ctx context.Context,
id ident.ID,
blockStart time.Time,
) (block.StreamedWideEntry, error)

// FetchBlocks retrieves data blocks for a given id and a list of block
// start times.
FetchBlocks(
Expand Down

0 comments on commit 725cdb4

Please sign in to comment.