Package io.substrait.expression
Class ImmutableWindowBound.Preceding
java.lang.Object
io.substrait.expression.WindowBound.Preceding
io.substrait.expression.ImmutableWindowBound.Preceding
- All Implemented Interfaces:
WindowBound
- Enclosing class:
- ImmutableWindowBound
Immutable implementation of
WindowBound.Preceding.
Use the builder to create immutable instances:
ImmutableWindowBound.Preceding.builder().
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.substrait.expression.WindowBound
WindowBound.CurrentRow, WindowBound.Following, WindowBound.Preceding, WindowBound.Unbounded, WindowBound.WindowBoundVisitor<R,E extends Throwable> -
Field Summary
Fields inherited from interface io.substrait.expression.WindowBound
CURRENT_ROW, UNBOUNDED -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forPreceding.copyOf(WindowBound.Preceding instance) Creates an immutable copy of aWindowBound.Precedingvalue.booleanThis instance is equal to all instances ofPrecedingthat have equal attribute values.inthashCode()Computes a hash code from attributes:offset.longoffset()toString()Prints the immutable valuePrecedingwith attribute values.withOffset(long value) Copy the current immutable object by setting a value for theoffsetattribute.Methods inherited from class io.substrait.expression.WindowBound.Preceding
accept, of
-
Method Details
-
offset
public long offset()- Specified by:
offsetin classWindowBound.Preceding- Returns:
- The value of the
offsetattribute
-
withOffset
Copy the current immutable object by setting a value for theoffsetattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for offset- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofPrecedingthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:offset. -
toString
Prints the immutable valuePrecedingwith attribute values. -
copyOf
Creates an immutable copy of aWindowBound.Precedingvalue. 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 Preceding instance
-
builder
Creates a builder forPreceding.ImmutableWindowBound.Preceding.builder() .offset(long) // requiredoffset.build();- Returns:
- A new Preceding builder
-