mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-31 15:06:26 +00:00
wip
This commit is contained in:
parent
db75ec4dac
commit
d08dfd8752
1 changed files with 5 additions and 1 deletions
|
@ -149,6 +149,10 @@ func (br *blockResult) initFromNeededColumns(brSrc *blockResult, bm *bitmap, nee
|
||||||
|
|
||||||
// cloneValues clones the given values into br and returns the cloned values.
|
// cloneValues clones the given values into br and returns the cloned values.
|
||||||
func (br *blockResult) cloneValues(values []string) []string {
|
func (br *blockResult) cloneValues(values []string) []string {
|
||||||
|
if values == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
valuesBufLen := len(br.valuesBuf)
|
valuesBufLen := len(br.valuesBuf)
|
||||||
for _, v := range values {
|
for _, v := range values {
|
||||||
br.addValue(v)
|
br.addValue(v)
|
||||||
|
@ -1494,7 +1498,7 @@ func (c *blockResultColumn) getValueAtRow(br *blockResult, rowIdx int) string {
|
||||||
return values[rowIdx]
|
return values[rowIdx]
|
||||||
}
|
}
|
||||||
|
|
||||||
// getValues returns values for the given column, bucketed according to bf.
|
// getValuesBucketed returns values for the given column, bucketed according to bf.
|
||||||
//
|
//
|
||||||
// The returned values are valid until br.reset() is called.
|
// The returned values are valid until br.reset() is called.
|
||||||
func (c *blockResultColumn) getValuesBucketed(br *blockResult, bf *byStatsField) []string {
|
func (c *blockResultColumn) getValuesBucketed(br *blockResult, bf *byStatsField) []string {
|
||||||
|
|
Loading…
Reference in a new issue