Interface RecordSerializer<T>

    • Method Detail

      • serializeObjects

        byte[] serializeObjects​(java.lang.Iterable<T> objects,
                                java.nio.ByteBuffer prefix)
                         throws VeniceException
        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 {@param prefix} will be the serialized byte array of the first kind of objects.
        Parameters:
        objects -
        prefix -
        Returns:
        Throws:
        VeniceException