Package com.c8db.util

Interface C8Serializer

    • Method Detail

      • serialize

        com.arangodb.velocypack.VPackSlice serialize​(Object entity)
                                              throws C8DBException
        Serialize a given Object to VelocyPack
        Parameters:
        entity - The Object to serialize. If it is from type String, it will be handled as a JSON.
        Returns:
        The serialized VelocyPack
        Throws:
        C8DBException
      • serialize

        com.arangodb.velocypack.VPackSlice serialize​(Object entity,
                                                     C8Serializer.Options options)
                                              throws C8DBException
        Serialize a given Object to VelocyPack
        Parameters:
        entity - The Object to serialize. If it is from type String, it will be handled as a JSON.
        options - Additional options
        Returns:
        the serialized VelocyPack
        Throws:
        C8DBException