Class MaxValueAggregator<T extends Serializable & Comparable>
- All Implemented Interfaces:
SmartExternalizable, Externalizable, Serializable, Cloneable
- Since:
- 10.0
- Author:
- Niv Ingberg
- See Also:
-
Field Summary
Fields inherited from class SpaceEntriesAggregator
NO_PATHS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaggregate(SpaceEntriesAggregatorContext context) voidaggregateIntermediateResult(T 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()getSQLQuery(String typeName) voidhandleIntermediateResultOfDbStorage(ResultSet resultSet, ITypeDesc typeDesc) voidhandleIntermediateResultOfMemoryStorage(TypeDataIndex index, TypeData entryType) booleanisIndexUsed(Map<String, SpaceIndex> indexes, boolean isMemoryScan) booleanskipFullScanSupported(Map<String, SpaceIndex> indexes, boolean isMemoryScan) booleanMethods inherited from class AbstractPathAggregator
declaredPath, getFunctionCallColumn, getPath, getPathValue, readExternal, setFunctionCallColumn, setPath, writeExternalMethods inherited from class SpaceEntriesAggregator
as, clone, getAlias, getFinalResult, maskPii, setAggregatorContext, setRawEntryConverter, toObjectMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
MaxValueAggregator
public MaxValueAggregator()
-
-
Method Details
-
getDefaultAlias
- Specified by:
getDefaultAliasin classSpaceEntriesAggregator<T extends Serializable & Comparable>
-
aggregate
- Specified by:
aggregatein classSpaceEntriesAggregator<T extends Serializable & Comparable>
-
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<T extends Serializable & Comparable>
-
aggregateIntermediateResult
- Specified by:
aggregateIntermediateResultin classSpaceEntriesAggregator<T extends Serializable & Comparable>
-
skipProcessedUidStore
public boolean skipProcessedUidStore()- Overrides:
skipProcessedUidStorein classSpaceEntriesAggregator<T extends Serializable & Comparable>
-
getIntermediateResult
- Specified by:
getIntermediateResultin classSpaceEntriesAggregator<T extends Serializable & Comparable>
-
getName
- Specified by:
getNamein classAbstractPathAggregator<T extends Serializable & Comparable>
-
skipFullScanSupported
- Overrides:
skipFullScanSupportedin classSpaceEntriesAggregator<T extends Serializable & Comparable>
-
isIndexUsed
- Overrides:
isIndexUsedin classSpaceEntriesAggregator<T extends Serializable & Comparable>
-
handleIntermediateResultOfMemoryStorage
- Overrides:
handleIntermediateResultOfMemoryStoragein classSpaceEntriesAggregator<T extends Serializable & Comparable>
-
handleIntermediateResultOfDbStorage
public void handleIntermediateResultOfDbStorage(ResultSet resultSet, ITypeDesc typeDesc) throws SQLException - Overrides:
handleIntermediateResultOfDbStoragein classSpaceEntriesAggregator<T extends Serializable & Comparable>- Throws:
SQLException
-
getSQLQuery
- Overrides:
getSQLQueryin classSpaceEntriesAggregator<T extends Serializable & Comparable>
-