Package io.substrait.extension
Class ImmutableSimpleExtension.WindowFunctionVariant
java.lang.Object
io.substrait.extension.SimpleExtension.Function
io.substrait.extension.SimpleExtension.WindowFunctionVariant
io.substrait.extension.ImmutableSimpleExtension.WindowFunctionVariant
- Enclosing class:
- ImmutableSimpleExtension
public static final class ImmutableSimpleExtension.WindowFunctionVariant
extends SimpleExtension.WindowFunctionVariant
Immutable implementation of
SimpleExtension.WindowFunctionVariant.
Use the builder to create immutable instances:
ImmutableSimpleExtension.WindowFunctionVariant.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeWindowFunctionVariant. -
Method Summary
Modifier and TypeMethodDescriptionargs()builder()Creates a builder forWindowFunctionVariant.copyOf(SimpleExtension.WindowFunctionVariant instance) Creates an immutable copy of aSimpleExtension.WindowFunctionVariantvalue.@Nullable StringbooleanThis instance is equal to all instances ofWindowFunctionVariantthat have equal attribute values.inthashCode()Computes a hash code from attributes:name,urn,variadic,description,args,options,metadata,nullability,ordered,returnType,decomposability,intermediate,windowType.@Nullable TypeExpressionmetadata()name()options()@Nullable Booleanordered()urn()variadic()withArgs(SimpleExtension.Argument... elements) Copy the current immutable object with elements that replace the content ofargs.withArgs(Iterable<? extends SimpleExtension.Argument> elements) Copy the current immutable object with elements that replace the content ofargs.Copy the current immutable object by setting a value for thedecomposabilityattribute.withDescription(@Nullable String value) Copy the current immutable object by setting a value for thedescriptionattribute.withIntermediate(@Nullable TypeExpression value) Copy the current immutable object by setting a value for theintermediateattribute.withMetadata(Map<String, Object> value) Copy the current immutable object by setting a present value for the optionalmetadataattribute.withMetadata(Optional<? extends Map<String, Object>> optional) Copy the current immutable object by setting an optional value for themetadataattribute.Copy the current immutable object by setting a value for thenameattribute.Copy the current immutable object by setting a value for thenullabilityattribute.withOptions(Map<String, ? extends SimpleExtension.Option> entries) Copy the current immutable object by replacing theoptionsmap with the specified map.withOrdered(@Nullable Boolean value) Copy the current immutable object by setting a value for theorderedattribute.withReturnType(TypeExpression value) Copy the current immutable object by setting a value for thereturnTypeattribute.Copy the current immutable object by setting a value for theurnattribute.Copy the current immutable object by setting a present value for the optionalvariadicattribute.withVariadic(Optional<? extends SimpleExtension.VariadicBehavior> optional) Copy the current immutable object by setting an optional value for thevariadicattribute.Copy the current immutable object by setting a value for thewindowTypeattribute.Methods inherited from class io.substrait.extension.SimpleExtension.WindowFunctionVariant
toStringMethods inherited from class io.substrait.extension.SimpleExtension.Function
constructKey, constructKeyFromTypes, getAnchor, getRange, key, requiredArguments, resolveType, validateOutputType
-
Method Details
-
name
- Overrides:
namein classSimpleExtension.Function- Returns:
- The value of the
nameattribute
-
urn
- Overrides:
urnin classSimpleExtension.Function- Returns:
- The value of the
urnattribute
-
variadic
- Specified by:
variadicin classSimpleExtension.Function- Returns:
- The value of the
variadicattribute
-
description
- Overrides:
descriptionin classSimpleExtension.Function- Returns:
- The value of the
descriptionattribute
-
args
- Specified by:
argsin classSimpleExtension.Function- Returns:
- The value of the
argsattribute
-
options
- Specified by:
optionsin classSimpleExtension.Function- Returns:
- The value of the
optionsattribute
-
metadata
- Specified by:
metadatain classSimpleExtension.Function- Returns:
- The value of the
metadataattribute
-
nullability
- Overrides:
nullabilityin classSimpleExtension.Function- Returns:
- The value of the
nullabilityattribute
-
ordered
- Specified by:
orderedin classSimpleExtension.Function- Returns:
- The value of the
orderedattribute
-
returnType
- Specified by:
returnTypein classSimpleExtension.Function- Returns:
- The value of the
returnTypeattribute
-
decomposability
- Overrides:
decomposabilityin classSimpleExtension.WindowFunctionVariant- Returns:
- The value of the
decomposabilityattribute
-
intermediate
- Specified by:
intermediatein classSimpleExtension.WindowFunctionVariant- Returns:
- The value of the
intermediateattribute
-
windowType
- Overrides:
windowTypein classSimpleExtension.WindowFunctionVariant- Returns:
- The value of the
windowTypeattribute
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy or the
thisobject
-
withUrn
Copy the current immutable object by setting a value for theurnattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for urn- Returns:
- A modified copy or the
thisobject
-
withVariadic
public final ImmutableSimpleExtension.WindowFunctionVariant withVariadic(SimpleExtension.VariadicBehavior value) Copy the current immutable object by setting a present value for the optionalvariadicattribute.- Parameters:
value- The value for variadic- Returns:
- A modified copy or
thisif not changed
-
withVariadic
public final ImmutableSimpleExtension.WindowFunctionVariant withVariadic(Optional<? extends SimpleExtension.VariadicBehavior> optional) Copy the current immutable object by setting an optional value for thevariadicattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for variadic- Returns:
- A modified copy or
thisif not changed
-
withDescription
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description (can benull)- Returns:
- A modified copy or the
thisobject
-
withArgs
public final ImmutableSimpleExtension.WindowFunctionVariant withArgs(SimpleExtension.Argument... elements) Copy the current immutable object with elements that replace the content ofargs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withArgs
public final ImmutableSimpleExtension.WindowFunctionVariant withArgs(Iterable<? extends SimpleExtension.Argument> elements) Copy the current immutable object with elements that replace the content ofargs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of args elements to set- Returns:
- A modified copy or
thisif not changed
-
withOptions
public final ImmutableSimpleExtension.WindowFunctionVariant withOptions(Map<String, ? extends SimpleExtension.Option> entries) Copy the current immutable object by replacing theoptionsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to replace the options map- Returns:
- A modified copy or
thisif not changed
-
withMetadata
Copy the current immutable object by setting a present value for the optionalmetadataattribute.- Parameters:
value- The value for metadata- Returns:
- A modified copy or
thisif not changed
-
withMetadata
public final ImmutableSimpleExtension.WindowFunctionVariant withMetadata(Optional<? extends Map<String, Object>> optional) Copy the current immutable object by setting an optional value for themetadataattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for metadata- Returns:
- A modified copy or
thisif not changed
-
withNullability
public final ImmutableSimpleExtension.WindowFunctionVariant withNullability(SimpleExtension.Nullability value) Copy the current immutable object by setting a value for thenullabilityattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for nullability- Returns:
- A modified copy or the
thisobject
-
withOrdered
Copy the current immutable object by setting a value for theorderedattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for ordered (can benull)- Returns:
- A modified copy or the
thisobject
-
withReturnType
Copy the current immutable object by setting a value for thereturnTypeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for returnType- Returns:
- A modified copy or the
thisobject
-
withDecomposability
public final ImmutableSimpleExtension.WindowFunctionVariant withDecomposability(SimpleExtension.Decomposability value) Copy the current immutable object by setting a value for thedecomposabilityattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for decomposability- Returns:
- A modified copy or the
thisobject
-
withIntermediate
public final ImmutableSimpleExtension.WindowFunctionVariant withIntermediate(@Nullable TypeExpression value) Copy the current immutable object by setting a value for theintermediateattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for intermediate (can benull)- Returns:
- A modified copy or the
thisobject
-
withWindowType
public final ImmutableSimpleExtension.WindowFunctionVariant withWindowType(SimpleExtension.WindowType value) Copy the current immutable object by setting a value for thewindowTypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for windowType- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofWindowFunctionVariantthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,urn,variadic,description,args,options,metadata,nullability,ordered,returnType,decomposability,intermediate,windowType. -
copyOf
public static ImmutableSimpleExtension.WindowFunctionVariant copyOf(SimpleExtension.WindowFunctionVariant instance) Creates an immutable copy of aSimpleExtension.WindowFunctionVariantvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable WindowFunctionVariant instance
-
builder
Creates a builder forWindowFunctionVariant.ImmutableSimpleExtension.WindowFunctionVariant.builder() .name(String) // optionalname.urn(String) // optionalurn.variadic(Optional<io.substrait.extension.SimpleExtension.VariadicBehavior>) // optionalvariadic.description(String | null) // nullabledescription.addArgs|addAllArgs(io.substrait.extension.SimpleExtension.Argument) //argselements .putOptions|putAllOptions(String => io.substrait.extension.SimpleExtension.Option) //optionsmappings .metadata(Optional<Map<String, Object>>) // optionalmetadata.nullability(io.substrait.extension.SimpleExtension.Nullability) // optionalnullability.ordered(Boolean | null) // nullableordered.returnType(io.substrait.function.TypeExpression) // requiredreturnType.decomposability(io.substrait.extension.SimpleExtension.Decomposability) // optionaldecomposability.intermediate(io.substrait.function.TypeExpression | null) // nullableintermediate.windowType(io.substrait.extension.SimpleExtension.WindowType) // optionalwindowType.build();- Returns:
- A new WindowFunctionVariant builder
-