Skip to content

Commit

Permalink
Support time bucket query
Browse files Browse the repository at this point in the history
  • Loading branch information
xichen2020 committed Jan 30, 2019
1 parent 1ac68b4 commit 0761181
Show file tree
Hide file tree
Showing 13 changed files with 705 additions and 84 deletions.
1 change: 1 addition & 0 deletions calculation/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type Result interface {
New() Result

// Add adds a value to the result.
// TODO(xichen): Perhaps make this API take a `*ValueUnion` instead to save copy time.
Add(v ValueUnion)

// MergeInPlace merges the current result with the other result in place.
Expand Down
8 changes: 5 additions & 3 deletions query/grouped_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (r *GroupedResults) IsEmpty() bool { return r.Len() == 0 }
// IsOrdered returns true if the grouped results are kept in order.
func (r *GroupedResults) IsOrdered() bool { return len(r.OrderBy) > 0 }

// HasOrderedFilter returns true if the raw results supports filtering ordered values.
// HasOrderedFilter returns true if the grouped results supports filtering ordered values.
// This is used to determine whether the result should be used to fast eliminate ineligible
// segments by filtering out those whose range fall outside the current result value range.
//
Expand Down Expand Up @@ -116,13 +116,15 @@ func (r *GroupedResults) NumGroupsLimit() int {
}

// MinOrderByValues returns the orderBy field values for the smallest result in
// the result collection.
// the result collection if applicable. This is only called if `HasOrderedFilter`
// returns true.
func (r *GroupedResults) MinOrderByValues() field.Values {
panic("not implemented")
}

// MaxOrderByValues returns the orderBy field values for the largest result in
// the result collection.
// the result collection if applicable. This is only called if `HasOrderedFilter`
// returns true.
func (r *GroupedResults) MaxOrderByValues() field.Values {
panic("not implemented")
}
Expand Down
Loading

0 comments on commit 0761181

Please sign in to comment.