Class SpaceEntriesAggregator<T extends Serializable>
- All Implemented Interfaces:
Serializable, Cloneable
- Direct Known Subclasses:
AbstractPathAggregator, CopyChunksProducer, DeleteChunksProducer, DistinctAggregator, GroupByAggregator, ListEntriesAggregator, OrderByAggregator, SpaceIteratorAggregator
- Since:
- 10.0
- Author:
- Niv Ingberg
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String[]What an aggregator that reads no property value at all declares ingetAggregatedPaths(). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidaggregate(SpaceEntriesAggregatorContext context) abstract voidaggregateIntermediateResult(T partitionResult) clone()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.getAlias()abstract Stringabstract TgetSQLQuery(String typeName) voidhandleIntermediateResultOfDbStorage(ResultSet resultSet, ITypeDesc typeDesc) voidhandleIntermediateResultOfMemoryStorage(TypeDataIndex index, TypeData entryType) booleanisIndexUsed(Map<String, SpaceIndex> indexes, boolean isMemoryScan) protected voidmaskPii(IEntryPacket entryPacket) Field level security: omits the PII properties the user lacks read privilege for from an entry the aggregator built directly (e.g.voidprotected voidsetRawEntryConverter(RawEntryConverter rawEntryConverter) booleanskipFullScanSupported(Map<String, SpaceIndex> indexes, boolean isMemoryScan) booleanprotected Object
-
Field Details
-
NO_PATHS
What an aggregator that reads no property value at all declares ingetAggregatedPaths().
-
-
Constructor Details
-
SpaceEntriesAggregator
public SpaceEntriesAggregator()
-
-
Method Details
-
getAlias
-
as
-
getDefaultAlias
-
aggregate
-
getIntermediateResult
-
aggregateIntermediateResult
-
skipProcessedUidStore
public boolean skipProcessedUidStore() -
getFinalResult
-
skipFullScanSupported
-
getAggregatedPaths
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. 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
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.
- Since:
- 18.0.1
-
isIndexUsed
-
setAggregatorContext
-
maskPii
Field level security: omits the PII properties the user lacks read privilege for from an entry the aggregator built directly (e.g. from an index or storage scan) instead of viaSpaceEntriesAggregatorContext.getRawEntry(). -
handleIntermediateResultOfMemoryStorage
-
handleIntermediateResultOfDbStorage
public void handleIntermediateResultOfDbStorage(ResultSet resultSet, ITypeDesc typeDesc) throws SQLException - Throws:
SQLException
-
getSQLQuery
-
setRawEntryConverter
-
toObject
-
clone
-