Class SpaceIteratorAggregator
java.lang.Object
com.gigaspaces.query.aggregators.SpaceEntriesAggregator<ISpaceIteratorAggregatorPartitionResult>
com.gigaspaces.client.iterator.internal.SpaceIteratorAggregator
- All Implemented Interfaces:
MayNeedWholeEntry, SmartExternalizable, Externalizable, Serializable, Cloneable
public class SpaceIteratorAggregator
extends SpaceEntriesAggregator<ISpaceIteratorAggregatorPartitionResult>
implements SmartExternalizable, MayNeedWholeEntry
- Since:
- 10.1
- 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(ISpaceIteratorAggregatorPartitionResult partitionResult) String[]Nothing of the entry itself is read on either half of the scan: the first batch is handed back as whole packets, and after it only the type name and the uid are used - and both of those live in the entry's cache info rather than in its block.booleanWhile the first batch is being filled this reaches forgetRawEntry, and once the batch is full it never does again.voidsetBatchSize(int batchSize) setTiered(boolean tiered) voidMethods 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
-
SpaceIteratorAggregator
public SpaceIteratorAggregator()
-
-
Method Details
-
setBatchSize
-
setTiered
-
getDefaultAlias
- Specified by:
getDefaultAliasin classSpaceEntriesAggregator<ISpaceIteratorAggregatorPartitionResult>
-
aggregate
- Specified by:
aggregatein classSpaceEntriesAggregator<ISpaceIteratorAggregatorPartitionResult>
-
getAggregatedPaths
Nothing of the entry itself is read on either half of the scan: the first batch is handed back as whole packets, and after it only the type name and the uid are used - and both of those live in the entry's cache info rather than in its block.- Overrides:
getAggregatedPathsin classSpaceEntriesAggregator<ISpaceIteratorAggregatorPartitionResult>
-
needsWholeEntry
public boolean needsWholeEntry()While the first batch is being filled this reaches forgetRawEntry, and once the batch is full it never does again. Mirrors the condition inaggregate(SpaceEntriesAggregatorContext)exactly, and projects what it is handed there, which is whatMayNeedWholeEntryrequires of an implementation.- Specified by:
needsWholeEntryin interfaceMayNeedWholeEntry
-
getIntermediateResult
- Specified by:
getIntermediateResultin classSpaceEntriesAggregator<ISpaceIteratorAggregatorPartitionResult>
-
aggregateIntermediateResult
- Specified by:
aggregateIntermediateResultin classSpaceEntriesAggregator<ISpaceIteratorAggregatorPartitionResult>
-
getFinalResult
- Overrides:
getFinalResultin classSpaceEntriesAggregator<ISpaceIteratorAggregatorPartitionResult>
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-