Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor map functions to use list of values #4264

Merged
merged 1 commit into from
Sep 29, 2015

Conversation

benbjohnson
Copy link
Contributor

Overview

This commit changes tsdb.mapFunc to use tsdb.MapInput instead of an iterator. This will make it easier and faster to pass blocks of values from the new storage engine into the engine.

@benbjohnson benbjohnson changed the title Refactor map functions to use list of values Refactor map functions to use list of values (WIP) Sep 28, 2015
@benbjohnson benbjohnson changed the title Refactor map functions to use list of values (WIP) Refactor map functions to use list of values Sep 29, 2015
max := &minMaxMapOut{}

pointsYielded := false
var val float64

for k, v := itr.Next(); k != -1; k, v = itr.Next() {
switch n := v.(type) {
fmt.Printf("MAX======\n")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug code, I'm sure you want removed.

@otoolep
Copy link
Contributor

otoolep commented Sep 29, 2015

Seems fine, +1 once the debug code is removed.

This commit changes `tsdb.mapFunc` to use `tsdb.MapInput` instead
of an iterator. This will make it easier and faster to pass blocks
of values from the new storage engine into the engine.
benbjohnson added a commit that referenced this pull request Sep 29, 2015
Refactor map functions to use list of values
@benbjohnson benbjohnson merged commit a754462 into influxdata:master Sep 29, 2015
@benbjohnson benbjohnson deleted the map-fn branch September 29, 2015 20:00
@benbjohnson
Copy link
Contributor Author

@otoolep fixed & merged. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants