Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8372675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:29:44+00:00 2026-06-09T14:29:44+00:00

Suppose I have an interval event with a known end time, is there a

  • 0

Suppose I have an interval event with a known end time, is there a way to fire off another event, before the said interval event expires. The purpose of this is that at that point I need to do an aggregate.

Alternatively is there a way to do a query (this is not as desired but I might have to resort to it)

(from input in inputStream
select input).AddDelay(input.EndTime - DateTime.UtcNow)

In case my understanding is completely off, please suggest a better approach.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T14:29:46+00:00Added an answer on June 9, 2026 at 2:29 pm

    First, we need to filter your source stream to get a stream of x1 events.

    var x1Stream = from e in sourceStream
                where e.ItemId == "X1"
                select new {e.ItemId, e.Timestamp}
    

    Next, we need to filter your source stream to get a stream of non-x1 events.

    var nonX1Stream = from e in sourceStream
                where e.ItemId != "X1"
                select e;
    

    Now we’ll join the x1 event stream with the non-x1 event stream to get a list of all the non-x1 events that occur during an x1 event.

    var x = from l in x1Stream
        from r in nonX1Stream
        select new {l.ItemId, l.Timestamp, r};
    

    Getting a count of the non-x1 events that occur during an x1 event will require some kind of HoppingWindow to be able to actually count the events in the stream over a fixed period of time. You can also call ToEnumerable() to be able to do the grouping without a window.

    var y = from e in x.ToEnumerable()
        group e by new {e.ItemId, e.Timestamp}
        into g
        select new {g.Key.ItemId, g.Key.Timestamp, Count = g.Count()};
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a datetime column. SELECT * FROM mytable WHERE thetime < INTERVAL
Any efficient/reliable way to expose one event? I have a class, MultipleDocumentCopier that copies
I have such scope scope :old, joins(:group).where(`users`.`created_at` <= DATE_SUB(?, INTERVAL `groups`.`check_minutes` MINUTE), Time.now) I
Let's suppose I have 2 intervals: INTERVAL '0 00:30:00' DAY TO SECOND INTERVAL '0
Suppose I have to spawn off 100 threads to access a HTTP resource. Since
Suppose I have a non-recurring event that needs to be raised X seconds from
Suppose I have an interval (a,b), and a number of subintervals {(a i ,b
suppose i have a .on() function wherein i select multiple ids $(#i, #am, #your,
Suppose I have a large list of words. For an example: >>> with open('/usr/share/dict/words')
Suppose I have a pure virtual method in the base interface that returns to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.