Record Class ChangelogRange.TimestampRange
- Record Components:
startingTimestamp- the starting timestamp in microseconds since epochendingTimestamp- the ending timestamp in microseconds since epoch (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.TimestampRange(long startingTimestamp, Optional<Long> endingTimestamp, boolean startingBoundInclusive, boolean endingBoundInclusive)
extends Record
implements ChangelogRange
A changelog range defined by timestamps.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.sql.connector.catalog.ChangelogRange
ChangelogRange.TimestampRange, ChangelogRange.UnboundedRange, ChangelogRange.VersionRange -
Constructor Summary
ConstructorsConstructorDescriptionTimestampRange(long startingTimestamp, Optional<Long> endingTimestamp, boolean startingBoundInclusive, boolean endingBoundInclusive) Creates an instance of aTimestampRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theendingBoundInclusiverecord component.Returns the value of theendingTimestamprecord 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.longReturns the value of thestartingTimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TimestampRange
public TimestampRange(long startingTimestamp, Optional<Long> endingTimestamp, boolean startingBoundInclusive, boolean endingBoundInclusive) Creates an instance of aTimestampRangerecord class.- Parameters:
startingTimestamp- the value for thestartingTimestamprecord componentendingTimestamp- the value for theendingTimestamprecord 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 '=='. -
startingTimestamp
public long startingTimestamp()Returns the value of thestartingTimestamprecord component.- Returns:
- the value of the
startingTimestamprecord component
-
endingTimestamp
Returns the value of theendingTimestamprecord component.- Returns:
- the value of the
endingTimestamprecord 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
-