Interface MayNeedWholeEntry
- All Known Implementing Classes:
SpaceIteratorAggregator
public interface MayNeedWholeEntry
An aggregator whose need for the entry itself changes while the scan is running, and which therefore
has to be asked per entry rather than once.
Deliberately not a method on SpaceEntriesAggregator: what an aggregator reads is settled
by getAggregatedPaths before the scan and holds for every entry, so there is nothing for one
written outside this repository to change its mind about. The only case that does is
SpaceIteratorAggregator, and it is internal.
- Since:
- 18.0.1
-
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this one entry has to be materialised after all.
-
Method Details
-
needsWholeEntry
boolean needsWholeEntry()Whether this one entry has to be materialised after all. An implementation has to mirror the condition in its ownaggregateexactly: an entry answered no to here and then reached for would be one that was never built, and reaching for it throws.A yes is a request for the entry as
getRawEntryhands it over, and when the template carries a projection that can be a packet already narrowed to it rather than the whole entry. So an implementation has to apply the projection to what it is handed and keep nothing it would cut away.
-