Package io.substrait.expression
Class ImmutableExpression.UserDefinedAnyLiteral.Builder
java.lang.Object
io.substrait.expression.ImmutableExpression.UserDefinedAnyLiteral.Builder
- Enclosing class:
- ImmutableExpression.UserDefinedAnyLiteral
Builds instances of type
UserDefinedAnyLiteral.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionaddAllTypeParameters(Iterable<? extends Type.Parameter> elements) Adds elements totypeParameterslist.addTypeParameters(Type.Parameter element) Adds one element totypeParameterslist.addTypeParameters(Type.Parameter... elements) Adds elements totypeParameterslist.build()Builds a newUserDefinedAnyLiteral.from(Expression.Literal instance) Fill a builder with attribute values from the providedio.substrait.expression.Expression.Literalinstance.from(Expression.UserDefinedAnyLiteral instance) Fill a builder with attribute values from the providedio.substrait.expression.Expression.UserDefinedAnyLiteralinstance.from(Expression.UserDefinedLiteral instance) Fill a builder with attribute values from the providedio.substrait.expression.Expression.UserDefinedLiteralinstance.Initializes the value for thenameattribute.nullable(boolean nullable) Initializes the value for thenullableattribute.typeParameters(Iterable<? extends Type.Parameter> elements) Sets or replaces all elements fortypeParameterslist.Initializes the value for theurnattribute.value(com.google.protobuf.Any value) Initializes the value for thevalueattribute.
-
Method Details
-
from
public final ImmutableExpression.UserDefinedAnyLiteral.Builder from(Expression.UserDefinedAnyLiteral instance) Fill a builder with attribute values from the providedio.substrait.expression.Expression.UserDefinedAnyLiteralinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedio.substrait.expression.Expression.Literalinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final ImmutableExpression.UserDefinedAnyLiteral.Builder from(Expression.UserDefinedLiteral instance) Fill a builder with attribute values from the providedio.substrait.expression.Expression.UserDefinedLiteralinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
nullable
Initializes the value for thenullableattribute.If not set, this attribute will have a default value as returned by the initializer of
nullable.- Parameters:
nullable- The value for nullable- Returns:
thisbuilder for use in a chained invocation
-
urn
Initializes the value for theurnattribute.- Parameters:
urn- The value for urn- Returns:
thisbuilder for use in a chained invocation
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
addTypeParameters
public final ImmutableExpression.UserDefinedAnyLiteral.Builder addTypeParameters(Type.Parameter element) Adds one element totypeParameterslist.- Parameters:
element- A typeParameters element- Returns:
thisbuilder for use in a chained invocation
-
addTypeParameters
public final ImmutableExpression.UserDefinedAnyLiteral.Builder addTypeParameters(Type.Parameter... elements) Adds elements totypeParameterslist.- Parameters:
elements- An array of typeParameters elements- Returns:
thisbuilder for use in a chained invocation
-
typeParameters
public final ImmutableExpression.UserDefinedAnyLiteral.Builder typeParameters(Iterable<? extends Type.Parameter> elements) Sets or replaces all elements fortypeParameterslist.- Parameters:
elements- An iterable of typeParameters elements- Returns:
thisbuilder for use in a chained invocation
-
addAllTypeParameters
public final ImmutableExpression.UserDefinedAnyLiteral.Builder addAllTypeParameters(Iterable<? extends Type.Parameter> elements) Adds elements totypeParameterslist.- Parameters:
elements- An iterable of typeParameters elements- Returns:
thisbuilder for use in a chained invocation
-
value
Initializes the value for thevalueattribute.- Parameters:
value- The value for value- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newUserDefinedAnyLiteral.- Returns:
- An immutable instance of UserDefinedAnyLiteral
- Throws:
IllegalStateException- if any required attributes are missing
-