Package io.substrait.relation
Class Expand.SwitchingField
java.lang.Object
io.substrait.relation.Expand.SwitchingField
- All Implemented Interfaces:
Expand.ExpandField
- Direct Known Subclasses:
ImmutableExpand.SwitchingField
- Enclosing class:
- Expand
@Immutable
public abstract static class Expand.SwitchingField
extends Object
implements Expand.ExpandField
A field that may switch among duplicate expressions; nullability propagates if any duplicate is
nullable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forExpand.SwitchingField.abstract List<Expression>Returns the duplicate expressions this field may switch between.getType()Returns the type derived from duplicates, adjusting nullability if needed.
-
Constructor Details
-
SwitchingField
public SwitchingField()
-
-
Method Details
-
getDuplicates
Returns the duplicate expressions this field may switch between.- Returns:
- list of duplicate expressions
-
getType
Returns the type derived from duplicates, adjusting nullability if needed.- Specified by:
getTypein interfaceExpand.ExpandField- Returns:
- the field type
-
builder
Creates a builder forExpand.SwitchingField.- Returns:
- a new immutable builder
-