Show / Hide Table of Contents

Class Count

Calculates a number of values in an entries collection.

Inheritance
object
Count
Implements
IParallelAwareAggregator
IEntryAggregator
IPortableObject
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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.

Implements

IParallelAwareAggregator
IEntryAggregator
IPortableObject
In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.