Package org.apache.iceberg.view
Interface ViewVersion
public interface ViewVersion
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 TypeMethodDescriptiondefault String
The default catalog when the view is created.The default namespace to use when the SQL does not contain a namespace.default String
Return the operation which produced the view versionReturn the list of other view representations.int
schemaId()
The query output schema at version create time, without aliasessummary()
Return the version summarylong
Return this version's timestamp.int
Return this version's id.
-
Method Details
-
versionId
int versionId()Return this version's id. Version ids are monotonically increasing -
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
Return the version summary- Returns:
- a version summary
-
representations
List<ViewRepresentation> representations()Return the list of other view representations.May contain SQL view representations for other dialects.
- Returns:
- the list of view representations
-
operation
Return the operation which produced the view version- Returns:
- the string operation which produced the view version
-
schemaId
int schemaId()The query output schema at version create time, without aliases -
defaultCatalog
The default catalog when the view is created. -
defaultNamespace
Namespace defaultNamespace()The default namespace to use when the SQL does not contain a namespace.
-