update transpiler result iterators with new Statistics method
parent
e3a9c04495
commit
17413276c2
|
@ -52,6 +52,10 @@ func (r *responseIterator) Err() error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (r *responseIterator) Statistics() flux.Statistics {
|
||||
return flux.Statistics{}
|
||||
}
|
||||
|
||||
// seriesIterator is a simple wrapper for Result that implements flux.Result and flux.TableIterator.
|
||||
type seriesIterator struct {
|
||||
result *Result
|
||||
|
@ -91,6 +95,10 @@ func (r *seriesIterator) Do(f func(flux.Table) error) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (r *seriesIterator) Statistics() flux.Statistics {
|
||||
return flux.Statistics{}
|
||||
}
|
||||
|
||||
// queryTable implements flux.Table and flux.ColReader.
|
||||
type queryTable struct {
|
||||
row *Row
|
||||
|
@ -109,6 +117,10 @@ func newQueryTable(r *Row) (*queryTable, error) {
|
|||
return t, nil
|
||||
}
|
||||
|
||||
func (t *queryTable) Statistics() flux.Statistics {
|
||||
return flux.Statistics{}
|
||||
}
|
||||
|
||||
// Data in a column is laid out in the following way:
|
||||
// [ r.row.Columns... , r.tagKeys()... , r.row.Name ]
|
||||
func (t *queryTable) translateRowsToColumns() error {
|
||||
|
|
Loading…
Reference in New Issue