Click or drag to resize

TopNAggregator Class

Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
14c (14.1.1.0)
F23534-02
TopNAggregator is a ParallelAwareAggregator that aggregates the top N extracted values into an array. The extracted values must not be null, but do not need to be unique.
Inheritance Hierarchy
SystemObject
  Tangosol.Util.AggregatorTopNAggregator

Namespace:  Tangosol.Util.Aggregator
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.14 (14.1.1.14)
Syntax
C#
public class TopNAggregator : IParallelAwareAggregator, 
	IEntryAggregator, IPartialResultAggregator, IPortableObject

The TopNAggregator type exposes the following members.

Constructors
  NameDescription
Public methodTopNAggregator
Default constructor.
Public methodTopNAggregator(IValueExtractor, IComparer, Int32)
Construct a TopNAggregator that will aggregate the top extracted values, as determined by the specified comparator.
Top
Properties
  NameDescription
Protected propertyComparer
The IComparer used by this aggregator.
Protected propertyExtractor
The ValueExtractor used by this aggregator.
Protected propertyIsParallel
True iff this aggregator is to be used in parallel.
Public propertyParallelAggregator
Get an aggregator that can take the place of this aggregator in situations in which the IInvocableCache can aggregate in parallel.
Protected propertyResults
The maximum number of results to include in the aggregation result.
Top
Methods
  NameDescription
Protected methodAddToResult
Add the specified values to the result if they are within the top-N.
Public methodAggregate
Process a set of IInvocableCacheEntry objects in order to produce an aggregated result.
Public methodAggregatePartialResults
Aggregate the results of the parallel aggregations, producing a partial result logically representing the partial aggregation. The returned partial result will be further {@link ParallelAwareAggregator#aggregateResults aggregated} to produce the final result.
Public methodAggregateResults
Aggregate the results of the parallel aggregations.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodFinalizeResult
Finalize the partial aggregation result.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReadExternal
Restore the contents of a user type instance by reading its state using the specified IPofReader object.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteExternal
Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.
Top
See Also