com.hazelcast.mapreduce.impl
Class CombinerResultList<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
com.hazelcast.mapreduce.impl.CombinerResultList<E>
- Type Parameters:
E
- element type of the collection
- All Implemented Interfaces:
- DataSerializable, IdentifiedDataSerializable, Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess
public class CombinerResultList<E>
- extends ArrayList<E>
- implements IdentifiedDataSerializable
This ArrayList
subclass exists to prevent
DefaultContext.CollectingCombinerFactory
created collections to be mixed up with user provided List results from
Combiner
s.
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
CombinerResultList
public CombinerResultList()
CombinerResultList
public CombinerResultList(Collection<? extends E> c)
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
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.