Package com.gigaspaces.query.aggregators
Class SumZeroScalarValueAggregator
java.lang.Object
com.gigaspaces.query.aggregators.SpaceEntriesAggregator<T>
com.gigaspaces.query.aggregators.AbstractPathAggregator<MutableNumber>
com.gigaspaces.query.aggregators.SumZeroScalarValueAggregator
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable,Cloneable
Sums scalar value, when no non null values are applied zero is returned instead of null
returns the same type as the value.
- Since:
- 16.0.1
- Author:
- Sagiv Michael
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaggregate(SpaceEntriesAggregatorContext context) voidaggregateIntermediateResult(MutableNumber partitionResult) getName()getValue()voidvoidMethods inherited from class com.gigaspaces.query.aggregators.AbstractPathAggregator
getFunctionCallColumn, getPath, getPathValue, setFunctionCallColumn, setPathMethods inherited from class com.gigaspaces.query.aggregators.SpaceEntriesAggregator
as, clone, getAlias, getSQLQuery, handleIntermediateResultOfDbStorage, handleIntermediateResultOfMemoryStorage, isIndexUsed, setAggregatorContext, setRawEntryConverter, skipFullScanSupported, skipProcessedUidStore, toObjectMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
SumZeroScalarValueAggregator
public SumZeroScalarValueAggregator() -
SumZeroScalarValueAggregator
-
-
Method Details
-
getValue
-
setValue
-
getDefaultAlias
- Specified by:
getDefaultAliasin classSpaceEntriesAggregator<MutableNumber>
-
aggregate
- Specified by:
aggregatein 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>
-