Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,16 @@ type PostingsIterator interface {
}

type DiskStatsReporter interface {
// BytesRead returns the bytes read from the disk as
// part of the current running query.
BytesRead() uint64
SetBytesRead(uint64)
// ResetBytesRead is used by the parent layer
// to reset the bytes read value to a consistent
// value during operations such as merging of segments.
ResetBytesRead(uint64)
// BytesRead returns the bytes written to disk while
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BytesWritten*

// building an index
BytesWritten() uint64
}

type OptimizablePostingsIterator interface {
Expand Down