Class SumZeroAggregator
- All Implemented Interfaces:
SmartExternalizable, Externalizable, Serializable, Cloneable
- Since:
- 16.0.1
- Author:
- Sagiv Michael
- See Also:
-
Field Summary
Fields inherited from class SpaceEntriesAggregator
NO_PATHS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaggregate(SpaceEntriesAggregatorContext context) voidaggregateIntermediateResult(MutableNumber partitionResult) String[]The property paths this aggregator reads out of every entry it is handed, when those values are all it reads - which lets a scan supply them out of the entry's blobstore block and never build the entry.getName()voidvoidMethods inherited from class AbstractPathAggregator
declaredPath, getFunctionCallColumn, getPath, getPathValue, setFunctionCallColumn, setPathMethods inherited from class SpaceEntriesAggregator
as, clone, getAlias, getSQLQuery, handleIntermediateResultOfDbStorage, handleIntermediateResultOfMemoryStorage, isIndexUsed, maskPii, setAggregatorContext, setRawEntryConverter, skipFullScanSupported, skipProcessedUidStore, toObjectMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
SumZeroAggregator
public SumZeroAggregator() -
SumZeroAggregator
-
-
Method Details
-
getDefaultAlias
- Specified by:
getDefaultAliasin classSpaceEntriesAggregator<MutableNumber>
-
aggregate
- Specified by:
aggregatein classSpaceEntriesAggregator<MutableNumber>
-
getAggregatedPaths
Description copied from class:SpaceEntriesAggregatorThe property paths this aggregator reads out of every entry it is handed, when those values are all it reads - which lets a scan supply them out of the entry's blobstore block and never build the entry. An empty array means it reads no values at all;nullmeans it wants the entry itself, and is what an aggregator says unless it overrides this.Returning paths is a promise about
SpaceEntriesAggregator.aggregate(SpaceEntriesAggregatorContext): that it reaches for nothing on the context butSpaceEntriesAggregatorContext.getPathValue(String)on these paths, the partition id, the uid and the type descriptor. The two ways of reaching the entry itself -SpaceEntriesAggregatorContext.getRawEntry()andSpaceEntriesAggregatorContext.getServerEntry()- are not among them and both throw when the entry was never built, so an aggregator that calls either fails loudly rather than aggregating over an entry it never saw. An aggregator that needs the entry declares no paths.The default is the slow branch on purpose: an aggregator added later reads whatever it likes until someone states otherwise here, and overriding this is that statement. It is made by one class for that class alone: a subclass inherits no declaration, whatever it overrides, and is served the entry unless it overrides this itself.
- Overrides:
getAggregatedPathsin classSpaceEntriesAggregator<MutableNumber>
-
getIntermediateResult
- Specified by:
getIntermediateResultin classSpaceEntriesAggregator<MutableNumber>
-
aggregateIntermediateResult
- Specified by:
aggregateIntermediateResultin classSpaceEntriesAggregator<MutableNumber>
-
getFinalResult
- Overrides:
getFinalResultin classSpaceEntriesAggregator<MutableNumber>
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAbstractPathAggregator<MutableNumber>- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAbstractPathAggregator<MutableNumber>- Throws:
IOExceptionClassNotFoundException
-
getName
- Specified by:
getNamein classAbstractPathAggregator<MutableNumber>
-