Interface OperationChainOptimiser

    • Method Detail

      • optimise

        <O> OperationChain<O> optimise​(OperationChain<O> operationChain)
        Optimises the operation chain. Operations in the chain can be swapped for more efficient operations depending on the store implementation. The operation chain has already been cloned so changes may be made directly to the operation chain parameter if required. This method can be extended to add custom optimisation, but ensure super.optimise is called first. Alternatively, the preferred approach is to override addPreOperations, optimiseCurrentOperation or addPostOperations
        Type Parameters:
        O - the operation output type
        Parameters:
        operationChain - the operation chain to optimise
        Returns:
        the optimised operation chain