com.hazelcast.util
Class QueryResultSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet
          extended by com.hazelcast.util.QueryResultSet
All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable, Iterable, Collection, Set

public class QueryResultSet
extends AbstractSet
implements IdentifiedDataSerializable

Collection(Set) class for result of query operations


Constructor Summary
QueryResultSet()
           
QueryResultSet(SerializationService serializationService, IterationType iterationType, boolean data)
           
 
Method Summary
 boolean add(Object entry)
           
 boolean add(QueryResultEntry entry)
           
 int getFactoryId()
          Returns DataSerializableFactory factory id for this class.
 int getId()
          Returns type identifier for this class.
 Iterator iterator()
           
 Iterator<Map.Entry> rawIterator()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 int size()
           
 String toString()
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
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
 
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

QueryResultSet

public QueryResultSet()

QueryResultSet

public QueryResultSet(SerializationService serializationService,
                      IterationType iterationType,
                      boolean data)
Method Detail

rawIterator

public Iterator<Map.Entry> rawIterator()

add

public boolean add(QueryResultEntry entry)

add

public boolean add(Object entry)
Specified by:
add in interface Collection
Specified by:
add in interface Set
Overrides:
add in class AbstractCollection

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in interface Set
Specified by:
iterator in class AbstractCollection

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface Set
Specified by:
size in class AbstractCollection

getFactoryId

public int getFactoryId()
Description copied from interface: IdentifiedDataSerializable
Returns DataSerializableFactory factory id for this class.

Specified by:
getFactoryId in interface IdentifiedDataSerializable
Returns:
factory id

getId

public int getId()
Description copied from interface: IdentifiedDataSerializable
Returns type identifier for this class. Id should be unique per DataSerializableFactory.

Specified by:
getId in interface IdentifiedDataSerializable
Returns:
type id

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

toString

public String toString()
Overrides:
toString in class AbstractCollection


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