Package com.linkedin.venice.serializer
Interface RecordSerializer<T>
- All Known Implementing Classes:
AvroSerializer
,FastAvroSerializer
,MapOrderPreservingFastSerializer
,MapOrderPreservingSerializer
,VsonAvroGenericSerializer
public interface RecordSerializer<T>
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte[]
serializeObjects
(Iterable<T> objects) byte[]
serializeObjects
(Iterable<T> objects, ByteBuffer prefix) Serialize a list of objects and put the prefix before the serialized objects.
-
Method Details
-
serialize
- Throws:
VeniceException
-
serializeObjects
- Throws:
VeniceException
-
serializeObjects
Serialize a list of objects and put the prefix before the serialized objects. This function could avoid unnecessary byte array copy when you want to serialize two different kinds of objects together. Essentially, the will be the serialized byte array of the first kind of objects.- Parameters:
objects
-prefix
-- Returns:
- Throws:
VeniceException
-