:: DeveloperApi :: Serializer for Java query classes using Gson
:: DeveloperApi :: Serializer for Java query classes using Gson
:: DeveloperApi :: Serializer for Scala query classes using org.apache.predictionio.controller.Utils.json4sDefaultFormats
:: DeveloperApi :: Serializer for Scala query classes using org.apache.predictionio.controller.Utils.json4sDefaultFormats
If your query class cannot be automatically serialized/deserialized to/from JSON, implement a trait by extending this trait, and overriding the
querySerializer
member with your custom JSON4S serializer. Algorithm and serving classes using your query class would only need to mix in the trait to enable the custom serializer.