|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
com.hazelcast.ringbuffer.impl.ReadResultSetImpl<E>
E - public class ReadResultSetImpl<E>
A list for the ReadManyOperation.
The problem with a regular list is that if you store Data objects, then on the receiving side you get
a list with data objects. If you hand this list out to the caller, you have a problem because he sees
data objects instead of deserialized objects.
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
ReadResultSetImpl()
|
|
ReadResultSetImpl(int minSize,
int maxSize,
HazelcastInstance hz,
IFunction<Object,Boolean> filter)
|
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
|
void |
addItem(Object item)
|
E |
get(int index)
Gets the item at the given index. |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class. |
int |
getId()
Returns type identifier for this class. |
boolean |
isMaxSizeReached()
|
boolean |
isMinSizeReached()
|
int |
readCount()
Returns the number of items that have been read before filtering. |
void |
readData(ObjectDataInput in)
Reads fields from the input stream |
void |
setHazelcastInstance(HazelcastInstance hz)
Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService. |
int |
size()
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream |
| Methods inherited from class java.util.AbstractList |
|---|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public ReadResultSetImpl()
public ReadResultSetImpl(int minSize,
int maxSize,
HazelcastInstance hz,
IFunction<Object,Boolean> filter)
| Method Detail |
|---|
public boolean isMaxSizeReached()
public boolean isMinSizeReached()
public int readCount()
ReadResultSet
readCount in interface ReadResultSet<E>public void setHazelcastInstance(HazelcastInstance hz)
HazelcastInstanceAware
setHazelcastInstance in interface HazelcastInstanceAwarehz - the HazelcastInstance referencepublic E get(int index)
ReadResultSet
get in interface ReadResultSet<E>get in interface List<E>get in class AbstractList<E>index - the index
public void addItem(Object item)
public boolean add(Object o)
add in interface Collection<E>add in interface List<E>add in class AbstractList<E>public int size()
size in interface Collection<E>size in interface List<E>size in class AbstractCollection<E>public int getFactoryId()
IdentifiedDataSerializable
getFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializable
getId in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out)
throws IOException
DataSerializable
writeData in interface DataSerializableout - output
IOException
public void readData(ObjectDataInput in)
throws IOException
DataSerializable
readData in interface DataSerializablein - input
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||