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

Explore writng a specialized summarizer for bulk ingest #97

Open
keith-turner opened this issue Jul 18, 2019 · 0 comments
Open

Explore writng a specialized summarizer for bulk ingest #97

keith-turner opened this issue Jul 18, 2019 · 0 comments

Comments

@keith-turner
Copy link
Contributor

To debug a recent bulk ingest test I wrote the following summarizer. This summarizer counted the number of times each UUID was seen. I used to count the number of entries each map reduce job had created.

package test.ci;

import org.apache.accumulo.core.client.summary.CountingSummarizer;

public class CiUuidSummarizer extends CountingSummarizer<String>{

  @Override
  protected Converter<String> converter() {
    return (k,v,c) -> c.accept(v.toString().split(":")[0]);
  }

}
@keith-turner keith-turner changed the title Explore wriitng a specialize summarizer for bulk ingest Explore writng a specialize summarizer for bulk ingest Jul 18, 2019
@keith-turner keith-turner changed the title Explore writng a specialize summarizer for bulk ingest Explore writng a specialized summarizer for bulk ingest Jul 18, 2019
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

No branches or pull requests

1 participant