Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delegation of nextReader calls #6477

Closed
wants to merge 1 commit into from
Closed

Delegation of nextReader calls #6477

wants to merge 1 commit into from

Commits on Jun 12, 2014

  1. Aggregations: Delegation of nextReader calls

    Currently aggregations subscribe to setNextReader calls in AggregationContext.  When a new reader is used all reader aware objects are notified of the new reader.  With deferred aggregations children aggregations of a breath-first aggregation do not require to be notified of reader changes until the replay stage. Also, at the replay stage only the child aggregations of the breath-first aggregation need to be notified, we should not be notifying all the other aggregations of the new reader.
    
    To solve this the calls for setNextReader are now handled by each aggregation so it can notify its child aggregations and any other ReaderContextAware objects (e.g. ValueSources) of the new reader at the relevant time.
    
    The same idea has also been applied to the setScorer and setTopReader calls for Aggregators and ValueSources.
    colings86 committed Jun 12, 2014
    Configuration menu
    Copy the full SHA
    bf1c519 View commit details
    Browse the repository at this point in the history