Class StarColumn

java.lang.Object
dev.frostlake.executor.StarColumn

public final class StarColumn extends Object
One effective output column produced by expanding a SELECT * after its EXCLUDE / RENAME / REPLACE / ILIKE modifiers: the value expression to project, the output column name (RENAME changes it), the original source column name (to tell whether it was renamed), and a best-effort output data type.
  • Constructor Details

    • StarColumn

      public StarColumn(String expression, String outputName, String sourceName, DataType dataType)
    • StarColumn

      public StarColumn(String expression, String outputName, String sourceName, DataType dataType, boolean nullable)
    • StarColumn

      public StarColumn(String expression, String outputName, String sourceName, DataType dataType, boolean nullable, boolean nullabilityKnown)
  • Method Details

    • getExpression

      public String getExpression()
    • getOutputName

      public String getOutputName()
    • getSourceName

      public String getSourceName()
    • getDataType

      public DataType getDataType()
    • isNullable

      public boolean isNullable()
      Whether the projected column accepts NULL — false only for a NOT NULL source column that the star projects as itself, since a REPLACE substitutes an expression.
    • isNullabilityKnown

      public boolean isNullabilityKnown()
      Whether the nullability above was read off a real column rather than defaulted — false for a REPLACE'd column, which projects an expression.
    • isRenamed

      public boolean isRenamed()
      Whether the output name differs from the source column name (RENAME applied).