Class TopNAggregator.PartialResult
The sorted partial result.
Implements
Inherited Members
Namespace: Tangosol.Util.Aggregator
Assembly: Coherence.dll
Syntax
public class TopNAggregator.PartialResult : IPortableObject
Constructors
PartialResult()
Default constructor.
Declaration
public PartialResult()
PartialResult(IComparer)
Construct a PartialResult using the specified comparer.
Declaration
public PartialResult(IComparer comparer)
Parameters
| Type | Name | Description |
|---|---|---|
| IComparer | comparer | The IComparer to use for sorting. |
Properties
BackingDictionary
The SortedList used to maintain the sorted results (as keys in the SortedList). The keys are the sorted results, and the values are the number of results for the particular key (to track duplicates).
Declaration
protected SortedList BackingDictionary { get; set; }
Property Value
| Type | Description |
|---|---|
| SortedList |
Comparer
The IComparer used to sort elements in this partial result.
Declaration
protected IComparer Comparer { get; }
Property Value
| Type | Description |
|---|---|
| IComparer |
Count
The number of results.
Declaration
public int Count { get; protected set; }
Property Value
| Type | Description |
|---|---|
| int |
First
The head of the list of results.
Declaration
public object First { get; }
Property Value
| Type | Description |
|---|---|
| object |
Results
The sorted collection of partial results.
Declaration
public IList Results { get; }
Property Value
| Type | Description |
|---|---|
| IList |
Methods
Add(object)
Add a new result to the list of results.
Declaration
public void Add(object o)
Parameters
| Type | Name | Description |
|---|---|---|
| object | o |
ReadExternal(IPofReader)
Restore the contents of a user type instance by reading its state using the specified IPofReader object.
Declaration
public 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. |
RemoveFirst()
Remove the first element from the list of results.
Declaration
public void RemoveFirst()
WriteExternal(IPofWriter)
Save the contents of a POF user type instance by writing its state using the specified IPofWriter object.
Declaration
public 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. |