We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb771b1 commit d9c588aCopy full SHA for d9c588a
segment.go
@@ -106,8 +106,14 @@ type PostingsIterator interface {
106
var CollectIOStats bool
107
108
type DiskStatsReporter interface {
109
+ // BytesRead returns the bytes read from the disk as
110
+ // part of the current running query.
111
BytesRead() uint64
- SetBytesRead(uint64)
112
+ // ResetBytesRead is used by the parent layer
113
+ // to reset the bytes read value to a consistent
114
+ // value during operations such as merging of segments.
115
+ ResetBytesRead(uint64)
116
+ BytesWritten() uint64
117
}
118
119
type OptimizablePostingsIterator interface {
0 commit comments