Class SchemaOptimiser

    • Constructor Detail

      • SchemaOptimiser

        public SchemaOptimiser()
    • Method Detail

      • optimise

        public Schema optimise​(Schema schema,
                               boolean isStoreOrdered)
        Optimise the provided Schema by removing unused types and adding default serialisers.
        Parameters:
        schema - the schema to optimise
        isStoreOrdered - determines whether to enforce ordering in the default serialisers or not
        Returns:
        the optimised schema object