Skip to content

Data aggregation processors added; Issue #3: Stdin support added; Issue: #5 JSON config support added#7

Open
b0s-works wants to merge 3 commits into
oleg-raev:masterfrom
b0s-works:master
Open

Data aggregation processors added; Issue #3: Stdin support added; Issue: #5 JSON config support added#7
b0s-works wants to merge 3 commits into
oleg-raev:masterfrom
b0s-works:master

Conversation

@b0s-works

Copy link
Copy Markdown

Added dynamic type data aggregation summarization methods: avg, sum and countUnique
Structure separated by two part: stdin receiver and files reader blocks
Work isn't done, but needs a review, comments and observations to guide me to the right developing path

Best Regards, Ivan

b0s added 2 commits June 6, 2018 11:52
…nd countUnique

Structure separated by two part: stdin receiver and files reader blocks
Work isn't done, but needs a review, comments and observations to guide me to the right developing path
Program became runable, but work isn't done.

Status Early alpha
Comment thread main.go Outdated
"github.com/sirupsen/logrus"
)

/*

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Remove comment, specified by CSV file

Comment thread main.go
data := strings.Split(row, ";")
if len(data) < 1 || len(data[0]) < 13 {
return
func main() {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Main function should be on top

Main function on top now
ValueSaver interface renamed to DataProcessor
summarizer.go.Storage type renamed to Result
Summarizer processors structures( avg.go, count-unique.go, sum.go ) renamed
File reader and StdIn functions moved to input.go
Flag package used to determine using of «-stdin» command line parameter to change source to stdin
Itoa and FormatInt used instead of Sprintf to convert int/int64 type numbers to string
ProcessRow function now part of Storage type, so this func became shorter and more flexible
@b0s-works b0s-works changed the title Some changes Data aggregation processors added; #3 Stdin support added; #5 JSON config support added Jun 8, 2018
@b0s-works b0s-works changed the title Data aggregation processors added; #3 Stdin support added; #5 JSON config support added Data aggregation processors added; Issue #3: Stdin support added; Issue: #5 JSON config support added Jun 8, 2018
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.

2 participants