Class Count
Calculates a number of values in an entries collection.
Inherited Members
Namespace: Tangosol.Util.Aggregator
Assembly: Coherence.dll
Syntax
public class Count : IParallelAwareAggregator, IEntryAggregator, IPortableObject
Constructors
Count()
Default constructor.
Declaration
public Count()
Properties
ParallelAggregator
Get an aggregator that can take the place of this aggregator in situations in which the IInvocableCache can aggregate in parallel.
Declaration
public virtual IEntryAggregator ParallelAggregator { get; }
Property Value
| Type | Description |
|---|---|
| IEntryAggregator | The aggregator that will be run in parallel. |
Methods
Aggregate(ICollection)
Process a set of IInvocableCacheEntry objects in order to produce an aggregated result.
Declaration
public virtual object Aggregate(ICollection entries)
Parameters
| Type | Name | Description |
|---|---|---|
| ICollection | entries | A collection of read-only IInvocableCacheEntry objects to aggregate. |
Returns
| Type | Description |
|---|---|
| object | The aggregated result from processing the entries. |
AggregateResults(ICollection)
Aggregate the results of the parallel aggregations.
Declaration
public virtual object AggregateResults(ICollection results)
Parameters
| Type | Name | Description |
|---|---|---|
| ICollection | results | Results to aggregate. |
Returns
| Type | Description |
|---|---|
| object | The aggregation of the parallel aggregation results. |
ReadExternal(IPofReader)
Restore the contents of a user type instance by reading its state using the specified IPofReader object.
Declaration
public virtual void ReadExternal(IPofReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| IPofReader | reader | The IPofReader from which to read the object's state. |
Exceptions
| Type | Condition |
|---|---|
| IOException | If an I/O error occurs. |
WriteExternal(IPofWriter)
Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.
Declaration
public virtual void WriteExternal(IPofWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| IPofWriter | writer | The IPofWriter to which to write the object's state. |
Exceptions
| Type | Condition |
|---|---|
| IOException | If an I/O error occurs. |