Interface ReorderingPolicy

All Known Implementing Classes:
NeuralAstReorderingPolicy, RatioSortPolicy

public interface ReorderingPolicy
Service Provider Interface (SPI) defining strategies for determining the optimal evaluation ordering of candidate AST clauses.
  • Method Summary

    Modifier and Type
    Method
    Description
    Determines the optimal evaluation order of candidate AST clauses.
  • Method Details

    • determineOrder

      List<Integer> determineOrder(List<NodeStats> nodes)
      Determines the optimal evaluation order of candidate AST clauses.
      Parameters:
      nodes - list of node statistics corresponding to candidate clauses
      Returns:
      list of 0-based indices representing the new evaluation sequence