Class ObjectIdCompactSerializer
java.lang.Object
com.hazelcast.jet.mongodb.compact.ObjectIdCompactSerializer
- All Implemented Interfaces:
CompactSerializer<org.bson.types.ObjectId>
public class ObjectIdCompactSerializer
extends Object
implements CompactSerializer<org.bson.types.ObjectId>
Compact serializer for
ObjectId.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<org.bson.types.ObjectId>Returns the unique type name for the classCompactSerializer.org.bson.types.ObjectIdread(CompactReader reader) voidwrite(CompactWriter writer, org.bson.types.ObjectId object)
-
Constructor Details
-
ObjectIdCompactSerializer
public ObjectIdCompactSerializer()
-
-
Method Details
-
read
- Specified by:
readin interfaceCompactSerializer<org.bson.types.ObjectId>- Parameters:
reader- reader to read fields of an object- Returns:
- the object created as a result of read method
-
write
- Specified by:
writein interfaceCompactSerializer<org.bson.types.ObjectId>- Parameters:
writer- CompactWriter to serialize the fields ontoobject- to be serialized.
-
getTypeName
Description copied from interface:CompactSerializerReturns the unique type name for the classCompactSerializer.If the class
CompactSerializeris ever evolved by adding or removing fields, the type name for the evolved serializers must be the same with the initial version.- Specified by:
getTypeNamein interfaceCompactSerializer<org.bson.types.ObjectId>- Returns:
- the type name
-
getCompactClass
- Specified by:
getCompactClassin interfaceCompactSerializer<org.bson.types.ObjectId>- Returns:
- the class to be serialized with this serializer.
-