Code Monkey home page Code Monkey logo

apalinea's Introduction

Apalinea a stream-library

Build

Note

This Library is work in progress. Most of the functionalities and the architecture were inspired by the DSMS framework Odysseus.

Usage

To use Apalinea you need to include Core/Plan/Plan.hpp, Core/Log/LogManager.hpp, Core/Executor/STLExecutor.hpp, Core/Log/ConsoleLog.hpp. You can also create your own Executor and Logger (STLExecutor and ConsoleLog are only pre defined ones). A Executor based on boost is also part of the library.

First you need to add a Logger to the LogManager by using (as an example with ConsoleLog): Apalinea::Core::Log::LogManager::addLog(std::make_unique<Apalinea::Core::Log::ConsoleLog>());

After that you need to create the Plan by using (as an example with STLExecutor and 3 threads / worker): Apalinea::Core::Plan::Plan plan(std::make_shared<Apalinea::Core::Executor::STLExecutor>(3));

After that you can add your operators to the plan by using:

  1. plan.createSource<YOUR_SOURCE_OPERATOR>(); - Creation of an SourceLink
  2. plan.createPipe<YOUR_PIPE_OPERATOR>(); - Creation of an PipeLink
  3. plan.createSink<YOUR_SINK_OPERATOR>(); - Creation of an SinkLink
  4. plan.connect(SOURCELINK_OBJECT,PIPELINK_OBJECT); - Connect two Links
  5. plan.connect(PIPELINK_OBJECT,PIPELINK_OBJECT); - Connect two Links
  6. plan.connect(SOURCELINK_OBJECT,SINKLINK_OBJECT); - Connect two Links
  7. plan.connect(PIPELINK_OBJECT,SINKLINK_OBJECT); - Connect two Links
  8. plan.process(); - Process one iteration through the stream (unordered)
  9. plan.order(); - Ordering of the whole plan
  10. plan.processOrdered(); - Process one iteration through the stream (ordered)

For a working example look into example/example.cpp.

Version and Changes

Currently, Apalinea is after a breaking change in the version v1.0.0.Orez available. At that change the full library has moved into its own namespace and a name change was fulfilled.

apalinea's People

Contributors

slepik avatar m43i avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

pgenergy

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.