Interface Expression
- All Known Subinterfaces:
- AggregateFunc,- Literal<T>,- NamedReference,- RewritableTransform,- SortOrder,- Transform
- All Known Implementing Classes:
- AlwaysFalse,- AlwaysTrue,- And,- Avg,- Cast,- ClusterByTransform,- Count,- CountStar,- org.apache.spark.sql.internal.connector.ExpressionWithToString,- Extract,- GeneralAggregateFunc,- GeneralScalarExpression,- Max,- Min,- Not,- Or,- Predicate,- Sum,- UserDefinedAggregateFunc,- UserDefinedScalarFunc
@Evolving
public interface Expression
Base class of the public logical expression API.
- Since:
- 3.0.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Expression[]static final NamedReference[]`EMPTY_EXPRESSION` is only used as an input when the default `references` method builds the result array to avoid repeatedly allocating an empty array.
- 
Method SummaryModifier and TypeMethodDescriptionchildren()Returns an array of the children of this node.default Stringdescribe()Format the expression as a human readable SQL-like string.default NamedReference[]List of fields or columns that are referenced by this expression.
- 
Field Details- 
EMPTY_EXPRESSION
- 
EMPTY_NAMED_REFERENCE`EMPTY_EXPRESSION` is only used as an input when the default `references` method builds the result array to avoid repeatedly allocating an empty array.
 
- 
- 
Method Details- 
describeFormat the expression as a human readable SQL-like string.
- 
childrenExpression[] children()Returns an array of the children of this node. Children should not change.
- 
referencesList of fields or columns that are referenced by this expression.
 
-