Interface ObjectSerializer<T>

  • Type Parameters:
    T - type of object to serialize.
    All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    JavaObjectSerializer

    public interface ObjectSerializer<T>
    extends Serializable
    Implementations of this interface are used to customize how objects will be stored when the index is persisted
    • Method Detail

      • write

        void write​(T item,
                   ObjectOutput out)
            throws IOException
        Writes the item to an ObjectOutput implementation.
        Parameters:
        item - the item to write
        out - the ObjectOutput implementation to write to
        Throws:
        IOException - in case of an I/O exception