SetOutOfOrderTimeWindow updates the out of order related parameters. If the Head already has a WBL set, then the wbl will be ignored.
(oooTimeWindow int64, wbl *wlog.WL)
| 1119 | // SetOutOfOrderTimeWindow updates the out of order related parameters. |
| 1120 | // If the Head already has a WBL set, then the wbl will be ignored. |
| 1121 | func (h *Head) SetOutOfOrderTimeWindow(oooTimeWindow int64, wbl *wlog.WL) { |
| 1122 | if oooTimeWindow > 0 && h.wbl == nil { |
| 1123 | h.wbl = wbl |
| 1124 | } |
| 1125 | |
| 1126 | h.opts.OutOfOrderTimeWindow.Store(oooTimeWindow) |
| 1127 | } |
| 1128 | |
| 1129 | // PostingsCardinalityStats returns highest cardinality stats by label and value names. |
| 1130 | func (h *Head) PostingsCardinalityStats(statsByLabelName string, limit int) *index.PostingsStats { |