com.hazelcast.util
Class SortedQueryResultSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<Map.Entry>
          extended by com.hazelcast.util.SortedQueryResultSet
All Implemented Interfaces:
Iterable<Map.Entry>, Collection<Map.Entry>, Set<Map.Entry>

public class SortedQueryResultSet
extends AbstractSet<Map.Entry>

Collection class for results of query operations


Constructor Summary
SortedQueryResultSet(Comparator comparator, IterationType iterationType, int pageSize)
           
 
Method Summary
 boolean add(Map.Entry entry)
           
 Iterator iterator()
           
 Map.Entry last()
           
 int size()
           
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray
 

Constructor Detail

SortedQueryResultSet

public SortedQueryResultSet(Comparator comparator,
                            IterationType iterationType,
                            int pageSize)
Method Detail

add

public boolean add(Map.Entry entry)
Specified by:
add in interface Collection<Map.Entry>
Specified by:
add in interface Set<Map.Entry>
Overrides:
add in class AbstractCollection<Map.Entry>

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable<Map.Entry>
Specified by:
iterator in interface Collection<Map.Entry>
Specified by:
iterator in interface Set<Map.Entry>
Specified by:
iterator in class AbstractCollection<Map.Entry>

last

public Map.Entry last()
Returns:
Map.Entry last entry in set

size

public int size()
Specified by:
size in interface Collection<Map.Entry>
Specified by:
size in interface Set<Map.Entry>
Specified by:
size in class AbstractCollection<Map.Entry>


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.