Record Class ChangelogRange.VersionRange
- Record Components:
startingVersion- the starting version (always present)endingVersion- the ending version (empty means latest)startingBoundInclusive- whether the starting bound is inclusiveendingBoundInclusive- whether the ending bound is inclusive
- All Implemented Interfaces:
ChangelogRange
- Enclosing interface:
- ChangelogRange
public static record ChangelogRange.VersionRange(String startingVersion, Optional<String> endingVersion, boolean startingBoundInclusive, boolean endingBoundInclusive)
extends Record
implements ChangelogRange
A changelog range defined by version identifiers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.sql.connector.catalog.ChangelogRange
ChangelogRange.TimestampRange, ChangelogRange.UnboundedRange, ChangelogRange.VersionRange -
Constructor Summary
ConstructorsConstructorDescriptionVersionRange(String startingVersion, Optional<String> endingVersion, boolean startingBoundInclusive, boolean endingBoundInclusive) Creates an instance of aVersionRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theendingBoundInclusiverecord component.Returns the value of theendingVersionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thestartingBoundInclusiverecord component.Returns the value of thestartingVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VersionRange
public VersionRange(String startingVersion, Optional<String> endingVersion, boolean startingBoundInclusive, boolean endingBoundInclusive) Creates an instance of aVersionRangerecord class.- Parameters:
startingVersion- the value for thestartingVersionrecord componentendingVersion- the value for theendingVersionrecord componentstartingBoundInclusive- the value for thestartingBoundInclusiverecord componentendingBoundInclusive- the value for theendingBoundInclusiverecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
startingVersion
Returns the value of thestartingVersionrecord component.- Returns:
- the value of the
startingVersionrecord component
-
endingVersion
Returns the value of theendingVersionrecord component.- Returns:
- the value of the
endingVersionrecord component
-
startingBoundInclusive
public boolean startingBoundInclusive()Returns the value of thestartingBoundInclusiverecord component.- Specified by:
startingBoundInclusivein interfaceChangelogRange- Returns:
- the value of the
startingBoundInclusiverecord component
-
endingBoundInclusive
public boolean endingBoundInclusive()Returns the value of theendingBoundInclusiverecord component.- Specified by:
endingBoundInclusivein interfaceChangelogRange- Returns:
- the value of the
endingBoundInclusiverecord component
-