Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stats ¶
type Stats struct { sync.RWMutex BytesLoaded uint64 `json:"bytes_loaded" doc:"Bytes loaded from disk"` BytesDecompressed uint64 `json:"bytes_decompressed" doc:"Effective block size after decompression"` BlocksProcessed uint64 `json:"blocks_processed" doc:"Number of blocks loaded from disk"` BlocksCorrupted uint64 `json:"blocks_corrupted" doc:"Blocks which could not be loaded or processed"` DirectoriesProcessed uint64 `json:"directories_processed" doc:"Number of directories processed"` Workloads uint64 `json:"workloads" doc:"Total number of workloads to be processed"` }
Stats tracks interactions with the underlying DB data
type StatsFunc ¶
type StatsFunc func(stats *Stats)
StatsFunc is a function which can be used to communicate running workload statistics
type StatsFuncs ¶
type StatsFuncs []StatsFunc
StatsCallbaacks is a list of StatsFuncs
func (StatsFuncs) Append ¶
func (sfc StatsFuncs) Append(fn StatsFunc) StatsFuncs
Append appends a stats func to the existing stats funcs
type Workload ¶
type Workload struct {
// contains filtered or unexported fields
}
Workload stores all relevant parameters to load a block and execute a query on it
func (*Workload) AppendStatsFunc ¶
func (w *Workload) AppendStatsFunc(fn StatsFunc) StatsFuncs
AppendStatsFunc appends the stats function to the existing stats func of the workload
Click to show internal directories.
Click to hide internal directories.