Package io.substrait.extension
Class ImmutableSimpleExtension.WindowFunction
java.lang.Object
io.substrait.extension.SimpleExtension.WindowFunction
io.substrait.extension.ImmutableSimpleExtension.WindowFunction
- Enclosing class:
- ImmutableSimpleExtension
public static final class ImmutableSimpleExtension.WindowFunction
extends SimpleExtension.WindowFunction
Immutable implementation of
SimpleExtension.WindowFunction.
Use the builder to create immutable instances:
ImmutableSimpleExtension.WindowFunction.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forWindowFunction.copyOf(SimpleExtension.WindowFunction instance) Creates an immutable copy of aSimpleExtension.WindowFunctionvalue.@Nullable StringbooleanThis instance is equal to all instances ofWindowFunctionthat have equal attribute values.inthashCode()Computes a hash code from attributes:name,description,metadata,impls.impls()metadata()@Nullable Stringname()toString()Prints the immutable valueWindowFunctionwith attribute values.withDescription(@Nullable String value) Copy the current immutable object by setting a value for thedescriptionattribute.withImpls(SimpleExtension.WindowFunctionVariant... elements) Copy the current immutable object with elements that replace the content ofimpls.withImpls(Iterable<? extends SimpleExtension.WindowFunctionVariant> elements) Copy the current immutable object with elements that replace the content ofimpls.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.Methods inherited from class io.substrait.extension.SimpleExtension.WindowFunction
resolve
-
Method Details
-
name
- Specified by:
namein classSimpleExtension.WindowFunction- Returns:
- The value of the
nameattribute
-
description
- Specified by:
descriptionin classSimpleExtension.WindowFunction- Returns:
- The value of the
descriptionattribute
-
metadata
- Specified by:
metadatain classSimpleExtension.WindowFunction- Returns:
- The value of the
metadataattribute
-
impls
- Specified by:
implsin classSimpleExtension.WindowFunction- Returns:
- The value of the
implsattribute
-
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 (can benull)- Returns:
- A modified copy or the
thisobject
-
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
-
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.WindowFunction 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
-
withImpls
public final ImmutableSimpleExtension.WindowFunction withImpls(SimpleExtension.WindowFunctionVariant... elements) Copy the current immutable object with elements that replace the content ofimpls.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withImpls
public final ImmutableSimpleExtension.WindowFunction withImpls(Iterable<? extends SimpleExtension.WindowFunctionVariant> elements) Copy the current immutable object with elements that replace the content ofimpls. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of impls elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofWindowFunctionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,description,metadata,impls. -
toString
Prints the immutable valueWindowFunctionwith attribute values. -
copyOf
public static ImmutableSimpleExtension.WindowFunction copyOf(SimpleExtension.WindowFunction instance) Creates an immutable copy of aSimpleExtension.WindowFunctionvalue. 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 WindowFunction instance
-
builder
Creates a builder forWindowFunction.ImmutableSimpleExtension.WindowFunction.builder() .name(String | null) // nullablename.description(String | null) // nullabledescription.metadata(Optional<Map<String, Object>>) // optionalmetadata.addImpls|addAllImpls(io.substrait.extension.SimpleExtension.WindowFunctionVariant) //implselements .build();- Returns:
- A new WindowFunction builder
-