GithubHelp home page GithubHelp logo

jetsam's Introduction

jetsam

Jetsam is a simple, concurrent pipeline that loads multiple ASCII files and places the individual lines from the files onto an internal channel. The lines from the internal channel are "reduced" or aggregated by a separate function provided by a pipeline client (see flotsam). The separate function is referred to as the "reducer".

The "reducer" function pulls the individual lines from the source line channel and performs client specific aggreations such as averages, summations and median calculations.

A pipeline is instantiated and parameteried by a client (see flotsam example). After a pipeline is instantiated and parameterized, client then calls the Provision() and Run() methods on the pipeline. The Run() initiates the orchestrates the pipeline and returns the results of the "reducer" to the client.

API

  1. Instantiate the jetsam.Pipeline object and specify:
  • Array of URLs that point to the source files to be loaded.
  • Buffersize of the sourceLine queue. This is the queue the reducer reads. The buffersize is the number of sourceLines that can be read by the reduce without synchronizing.
  • The number of Processor threads. These threads concurrently read from the source URLs.
  • The Reducing function. This function reads from the sourceLine channel, performs the reduction processing and then outputs results on the output channel.
  1. Invoke the Provision method on the pipeline.
  2. Invoke the Run method on the pipeline. The Run method performes the concurrent source URL reads, writes the lines to the source line channel and invokes the reducer function to process the source lines. The Run() method returns the reducer's results (DoneChanMsg)

Build

make

jetsam's People

Contributors

thomaswhitcomb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.