Giter Site home page Giter Site logo

Explicit Keyed Streams about arcon HOT 4 CLOSED

Max-Meldrum avatar Max-Meldrum commented on September 23, 2024 1
Explicit Keyed Streams

from arcon.

Comments (4)

segeljakt avatar segeljakt commented on September 23, 2024 1

Flink seems to have:

from arcon.

segeljakt avatar segeljakt commented on September 23, 2024

It looks nice, I think a benefit with this is that you can have multiple key extractors for the same event type. Is the type of the stream produced by iterator also a keyed stream or something else?

from arcon.

Max-Meldrum avatar Max-Meldrum commented on September 23, 2024

It looks nice, I think a benefit with this is that you can have multiple key extractors for the same event type. Is the type of the stream produced by iterator it also a keyed stream?

I take it would just be a Stream. iterator() -> Stream -> key_by(..) -> KeyedStream

We just have Stream right now, I guess we have to introduce more stream types such as in Flink Stream / KeyedStream / WindowStream?

from arcon.

Max-Meldrum avatar Max-Meldrum commented on September 23, 2024

One possible way of defining key_by. Use Builder notion as in other parts of the API and require an extractor + description of how the stream is keyed.

let mut app = Application::with_conf(conf)
    .iterator((0..1000000).map(|x| Event { id: x, data: 1.5 }), |conf| {
        conf.set_timestamp_extractor(|x: &Event| x.id);
    }) // Stream<Event>
    .key_by(KeyBuilder {
         extractor: Arc::new(|event| event.id),
         description: "User Name ID",
     }) // KeyedStream<Event>

from arcon.

Related Issues (20)

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.