Package org.apache.iceberg.viewdepoc
Interface Version
- All Known Implementing Classes:
BaseVersion
public interface Version
A version of the view at a point in time.
A version consists of a view metadata file.
Versions are created by view operations, like Create and Replace.
-
Method Summary
Modifier and TypeMethodDescriptionparentId()Return this version's parent ID or null.summary()Returns the version summary such as the name and genie-id of the operation that created that version of the view.longReturn this version's timestamp.intReturn this version's ID.Returns the view sql metadata.
-
Method Details
-
versionId
int versionId()Return this version's ID.- Returns:
- a long ID
-
parentId
Integer parentId()Return this version's parent ID or null.- Returns:
- a long ID for this version's parent, or null if it has no parent
-
timestampMillis
long timestampMillis()Return this version's timestamp.This timestamp is the same as those produced by
System.currentTimeMillis().- Returns:
- a long timestamp in milliseconds
-
summary
VersionSummary summary()Returns the version summary such as the name and genie-id of the operation that created that version of the view.- Returns:
- a version summary
-
viewDefinition
ViewDefinition viewDefinition()Returns the view sql metadata.- Returns:
- View SQL metadata
-