Skip navigation links 
 
com.tangosol.util.aggregator
Class TopNAggregator.PartialResult
java.lang.Object
   java.util.AbstractCollection
java.util.AbstractCollection
       com.tangosol.util.SortedBag
com.tangosol.util.SortedBag
           com.tangosol.util.aggregator.TopNAggregator.PartialResult
com.tangosol.util.aggregator.TopNAggregator.PartialResult
- All Implemented Interfaces:
- ExternalizableLite, PortableObject, java.io.Serializable, java.lang.Iterable, java.util.Collection
- Enclosing class:
- TopNAggregator
- 
public static class TopNAggregator.PartialResult
 
- extends SortedBag
- implements ExternalizableLite, PortableObject
The sorted partial result.
 
 
  
 
 
  
 
  
 
| Method Summary | 
|  void | readExternal(java.io.DataInput in)Restore the contents of this object by loading the object's state from the passed DataInput object.
 | 
|  void | readExternal(PofReader in)Restore the contents of a user type instance by reading its state using the specified PofReader object.
 | 
|  void | writeExternal(java.io.DataOutput out)Save the contents of this object by storing the object's state into the passed DataOutput object.
 | 
|  void | writeExternal(PofWriter out)Save the contents of a POF user type instance by writing its state using the specified PofWriter object.
 | 
 
| Methods inherited from class com.tangosol.util.SortedBag | 
| add, contains, first, getComparator, getInternalMap, getNonceCounter, headBag, instantiateInternalMap, isEmpty, iterator, last, remove, removeFirst, removeLast, size, subBag, tailBag, unwrap, wrap | 
 
| Methods inherited from class java.util.AbstractCollection | 
| addAll, clear, containsAll, removeAll, retainAll, toArray, toArray, toString | 
 
| Methods inherited from interface java.util.Collection | 
| equals, hashCode | 
 
 
TopNAggregator.PartialResult
public TopNAggregator.PartialResult()
- Default constructor.
TopNAggregator.PartialResult
public TopNAggregator.PartialResult(java.util.Comparator comparator)
- Construct a PartialResult using the specified comparator.
- Parameters:
- comparator- the comparator
 
readExternal
public void readExternal(java.io.DataInput in)
                  throws java.io.IOException
- Restore the contents of this object by loading the object's state from the passed DataInput object.
- 
- Specified by:
- readExternalin interface- ExternalizableLite
 
- 
- Parameters:
- in- the DataInput stream to read data from in order to restore the state of this object
- Throws:
- java.io.IOException- if an I/O exception occurs
- java.io.NotActiveException- if the object is not in its initial state, and therefore cannot be deserialized into
 
writeExternal
public void writeExternal(java.io.DataOutput out)
                   throws java.io.IOException
- Save the contents of this object by storing the object's state into the passed DataOutput object.
- 
- Specified by:
- writeExternalin interface- ExternalizableLite
 
- 
- Parameters:
- out- the DataOutput stream to write the state of this object to
- Throws:
- java.io.IOException- if an I/O exception occurs
 
readExternal
public void readExternal(PofReader in)
                  throws java.io.IOException
- Restore the contents of a user type instance by reading its state using the specified PofReader object.
- 
- Specified by:
- readExternalin interface- PortableObject
 
- 
- Parameters:
- in- the PofReader from which to read the object's state
- Throws:
- java.io.IOException- if an I/O error occurs
 
writeExternal
public void writeExternal(PofWriter out)
                   throws java.io.IOException
- Save the contents of a POF user type instance by writing its state using the specified PofWriter object.
- 
- Specified by:
- writeExternalin interface- PortableObject
 
- 
- Parameters:
- out- the PofWriter to which to write the object's state
- Throws:
- java.io.IOException- if an I/O error occurs
 
Skip navigation links 
 
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.