@Public public class Snapshot extends Object
Versioned change list:
Unversioned change list:
Modifier and Type | Class and Description |
---|---|
static class |
Snapshot.CommitKind
Type of changes in this snapshot.
|
Constructor and Description |
---|
Snapshot(Integer version,
long id,
long schemaId,
String baseManifestList,
String deltaManifestList,
String changelogManifestList,
String indexManifest,
String commitUser,
long commitIdentifier,
Snapshot.CommitKind commitKind,
long timeMillis,
Map<Integer,Long> logOffsets,
Long totalRecordCount,
Long deltaRecordCount,
Long changelogRecordCount,
Long watermark,
String statistics) |
Snapshot(long id,
long schemaId,
String baseManifestList,
String deltaManifestList,
String changelogManifestList,
String indexManifest,
String commitUser,
long commitIdentifier,
Snapshot.CommitKind commitKind,
long timeMillis,
Map<Integer,Long> logOffsets,
Long totalRecordCount,
Long deltaRecordCount,
Long changelogRecordCount,
Long watermark,
String statistics) |
Modifier and Type | Method and Description |
---|---|
String |
baseManifestList() |
String |
changelogManifestList() |
Long |
changelogRecordCount() |
long |
commitIdentifier() |
Snapshot.CommitKind |
commitKind() |
String |
commitUser() |
String |
deltaManifestList() |
Long |
deltaRecordCount() |
boolean |
equals(Object o) |
static Snapshot |
fromJson(String json) |
static Snapshot |
fromPath(FileIO fileIO,
Path path) |
int |
hashCode() |
long |
id() |
String |
indexManifest() |
Map<Integer,Long> |
logOffsets() |
long |
schemaId() |
String |
statistics() |
long |
timeMillis() |
String |
toJson() |
Long |
totalRecordCount() |
static Snapshot |
tryFromPath(FileIO fileIO,
Path path) |
int |
version() |
Long |
watermark() |
public static final long FIRST_SNAPSHOT_ID
public static final int TABLE_STORE_02_VERSION
protected static final int CURRENT_VERSION
protected static final String FIELD_VERSION
protected static final String FIELD_ID
protected static final String FIELD_SCHEMA_ID
protected static final String FIELD_BASE_MANIFEST_LIST
protected static final String FIELD_DELTA_MANIFEST_LIST
protected static final String FIELD_CHANGELOG_MANIFEST_LIST
protected static final String FIELD_INDEX_MANIFEST
protected static final String FIELD_COMMIT_USER
protected static final String FIELD_COMMIT_IDENTIFIER
protected static final String FIELD_COMMIT_KIND
protected static final String FIELD_TIME_MILLIS
protected static final String FIELD_LOG_OFFSETS
protected static final String FIELD_TOTAL_RECORD_COUNT
protected static final String FIELD_DELTA_RECORD_COUNT
protected static final String FIELD_CHANGELOG_RECORD_COUNT
protected static final String FIELD_WATERMARK
protected static final String FIELD_STATISTICS
protected final long id
protected final long schemaId
protected final String baseManifestList
protected final String deltaManifestList
protected final String indexManifest
protected final String commitUser
protected final long commitIdentifier
protected final Snapshot.CommitKind commitKind
protected final long timeMillis
public Snapshot(long id, long schemaId, String baseManifestList, String deltaManifestList, @Nullable String changelogManifestList, @Nullable String indexManifest, String commitUser, long commitIdentifier, Snapshot.CommitKind commitKind, long timeMillis, Map<Integer,Long> logOffsets, @Nullable Long totalRecordCount, @Nullable Long deltaRecordCount, @Nullable Long changelogRecordCount, @Nullable Long watermark, @Nullable String statistics)
public Snapshot(@Nullable Integer version, long id, long schemaId, String baseManifestList, String deltaManifestList, @Nullable String changelogManifestList, @Nullable String indexManifest, String commitUser, long commitIdentifier, Snapshot.CommitKind commitKind, long timeMillis, @Nullable Map<Integer,Long> logOffsets, @Nullable Long totalRecordCount, @Nullable Long deltaRecordCount, @Nullable Long changelogRecordCount, @Nullable Long watermark, @Nullable String statistics)
public int version()
public long id()
public long schemaId()
public String baseManifestList()
public String deltaManifestList()
public String commitUser()
public long commitIdentifier()
public Snapshot.CommitKind commitKind()
public long timeMillis()
public String toJson()
public static Snapshot tryFromPath(FileIO fileIO, Path path) throws FileNotFoundException
FileNotFoundException
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.