Package org.apache.iceberg.view
Interface Version
-
- All Known Implementing Classes:
BaseVersion
public interface VersionA 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.IntegerparentId()Return this version's parent ID or null.VersionSummarysummary()Returns the version summary such as the name and genie-id of the operation that created that version of the view.longtimestampMillis()Return this version's timestamp.intversionId()Return this version's ID.ViewDefinitionviewDefinition()Returns the view sql metadata.
-
-
-
Method Detail
-
versionId
int versionId()
Return this version's ID.- Returns:
- a long ID
-
parentId
java.lang.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
-
-