Giter Club home page Giter Club logo

clark's Introduction

CLARK

Project clark aims to provide a library for parallel data processing.

How to use ?

To use the framework it is necessary that you have configured version 3 of maven and java 7 in the project.

Example of use:a

  <dependencies>
      <dependency>
          <groupId>com.github.maikoncanuto</groupId>
          <artifactId>clark</artifactId>
          <version>1.0.1</version>
      </dependency>
  </dependencies>
//hidden imports 

//Class responsible for containing processing logic
public class ExampleProcessor implements Processor<String, Integer> {

    @Override
    public Result<String> run(final List<Integer> list) {
        Result<String> result = new Result<String>();

        for (Integer i : list) {
            result.getProcessedElements().add(i + " - Test");
        }

        return result;
    }
}

//Class responsible for performing the processing
public class Main {
    public static void main(String[] args) throws ExecutionException, InterruptedException {

        List<Integer> numbers = Arrays.asList(1, 2, 3, 4);

        Result<String> result = ProcessorHandler
                        .getProcessor(Type.ASYNCHRONOUS)
                        .run(new Data<>(numbers), new ExampleProcessor());

        System.out.println(result.getProcessedElements().size());
    }
}

clark's People

Contributors

mikenew01 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

clark's Issues

[ASYNC/SYNC] - Adicionar mecanismo de logs.

Adicionar mecanismo de log nos processamentos assíncronos e síncronos.

  • Com níveis de 'debug', 'info', 'warn' e 'error'. Com propriedade para o usuário determinar se deverá mostrar os logs.
  • Configurar mensagens em .properties para internacionalização.

[ASYNC] - Melhorar desempenho do algoritmo.

Melhorar o desempenho do processamento:

  • Na divisão dos lotes de processamento.
  • Iteração das listas de processamento.
  • Melhorar a inteligência de identificar número de processadores, impactando diretamente na definição dos lotes.

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.