Package dev.frostlake.executor
Class StarColumn
java.lang.Object
dev.frostlake.executor.StarColumn
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 Summary
ConstructorsConstructorDescriptionStarColumn(String expression, String outputName, String sourceName, DataType dataType) StarColumn(String expression, String outputName, String sourceName, DataType dataType, boolean nullable) StarColumn(String expression, String outputName, String sourceName, DataType dataType, boolean nullable, boolean nullabilityKnown) -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the nullability above was read off a real column rather than defaulted — false for a REPLACE'd column, which projects an expression.booleanWhether 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.booleanWhether the output name differs from the source column name (RENAME applied).
-
Constructor Details
-
StarColumn
-
StarColumn
-
StarColumn
-
-
Method Details
-
getExpression
-
getOutputName
-
getSourceName
-
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).
-