Class CheckpointInstance
Object
io.delta.kernel.internal.checkpoints.CheckpointInstance
- All Implemented Interfaces:
Comparable<CheckpointInstance>
Metadata about Delta checkpoint.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCheckpointInstance
(long version) CheckpointInstance
(long version, Optional<Integer> numParts) CheckpointInstance
(String path) -
Method Summary
-
Field Details
-
MAX_VALUE
Placeholder to identify the version that is always the latest on timeline -
version
public final long version -
numParts
-
format
-
filePath
-
-
Constructor Details
-
CheckpointInstance
-
CheckpointInstance
public CheckpointInstance(long version) -
CheckpointInstance
-
-
Method Details
-
getCorrespondingFiles
-
compareTo
Comparison rules: 1. A CheckpointInstance with higher version is greater than the one with lower version. 2. A CheckpointInstance for a V2 checkpoint is greater than a classic checkpoint (to filter avoid selecting the compatibility file) or a multipart checkpoint. 3. For CheckpointInstances with same version, a Multi-part checkpoint is greater than a Single part checkpoint. 4. For Multi-part CheckpointInstance corresponding to same version, the one with more parts is greater than the one with fewer parts. 5. For V2 checkpoints, use the file path to break ties.- Specified by:
compareTo
in interfaceComparable<CheckpointInstance>
-
toString
-
equals
-
hashCode
public int hashCode()
-