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 0cefbe5Copy full SHA for 0cefbe5
segment.go
@@ -101,13 +101,15 @@ type PostingsIterator interface {
101
Size() int
102
}
103
104
-// This flag controls the IO stats collection from the segment files
105
-// during indexing and querying
106
-var CollectIOStats bool
107
-
108
type DiskStatsReporter interface {
+ // BytesRead returns the bytes read from the disk as
+ // part of the current running query.
109
BytesRead() uint64
110
- 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.
111
+ ResetBytesRead(uint64)
112
+ BytesWritten() uint64
113
114
115
type OptimizablePostingsIterator interface {
0 commit comments