Record Class TimeTravel.AsOfTimestamp
- Record Components:
micros- microseconds since 1970-01-01 00:00:00 UTC
- All Implemented Interfaces:
TimeTravel
- Enclosing interface:
- TimeTravel
Time travel to a specific point in time.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.spark.sql.connector.catalog.TimeTravel
TimeTravel.AsOfTimestamp, TimeTravel.AsOfVersion -
Constructor Summary
ConstructorsConstructorDescriptionAsOfTimestamp(long micros) Creates an instance of aAsOfTimestamprecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longmicros()Returns the value of themicrosrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AsOfTimestamp
public AsOfTimestamp(long micros) Creates an instance of aAsOfTimestamprecord class.- Parameters:
micros- the value for themicrosrecord 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. All components in this record class are compared with '=='. -
micros
public long micros()Returns the value of themicrosrecord component.- Returns:
- the value of the
microsrecord component
-