Interface RecordSerializer<T>

All Known Implementing Classes:
AvroSerializer, FastAvroSerializer, MapOrderPreservingFastSerializer, MapOrderPreservingSerializer, VsonAvroGenericSerializer

public interface RecordSerializer<T>
  • Method Details

    • serialize

      byte[] serialize(T object) throws VeniceException
      Throws:
      VeniceException
    • serializeObjects

      byte[] serializeObjects(Iterable<T> objects) throws VeniceException
      Throws:
      VeniceException
    • serializeObjects

      byte[] serializeObjects(Iterable<T> objects, 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 will be the serialized byte array of the first kind of objects.
      Parameters:
      objects -
      prefix -
      Returns:
      Throws:
      VeniceException