Class SearchOptimizationExpression

java.lang.Object
dev.frostlake.metastore.model.SearchOptimizationExpression

public class SearchOptimizationExpression extends Object
One configured SEARCH OPTIMIZATION expression — a METHOD over a column, as DESCRIBE SEARCH OPTIMIZATION ON <table> reports it.

Frostlake records these and reports them; nothing in the executor consults them, so no lookup structure exists and no query plan changes (see docs/scope.md). The numbers are handed out once and never reused: dropping expression 2 leaves 1, 3, 4 numbered as they were (live-verified).

  • Constructor Details

    • SearchOptimizationExpression

      public SearchOptimizationExpression(int expressionId, String method, String target, String targetDataType)
  • Method Details

    • getExpressionId

      public int getExpressionId()
    • getMethod

      public String getMethod()
    • getTarget

      public String getTarget()
    • getTargetDataType

      public String getTargetDataType()
    • render

      public String render(String tableName)
      How the ALTER form spells this expression back when it refuses to drop a missing one.