com.hazelcast.mapreduce.aggregation.impl
Class SetAdapter<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<E>
com.hazelcast.mapreduce.aggregation.impl.SetAdapter<E>
- Type Parameters:
E
- element type of the set
- All Implemented Interfaces:
- DataSerializable, IdentifiedDataSerializable, Serializable, Cloneable, Iterable<E>, Collection<E>, Set<E>
public class SetAdapter<E>
- extends HashSet<E>
- implements IdentifiedDataSerializable
A simple adapter class to serialize values of a Set
using
Hazelcast serialization support.
- See Also:
- Serialized Form
SetAdapter
public SetAdapter()
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.