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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.String
defaultCatalog()
The default catalog when the view is created.Namespace
defaultNamespace()
The default namespace to use when the SQL does not contain a namespace.default java.lang.String
operation()
Return the operation which produced the view versionjava.util.List<ViewRepresentation>
representations()
Return the list of other view representations.int
schemaId()
The query output schema at version create time, without aliasesjava.util.Map<java.lang.String,java.lang.String>
summary()
Return the version summarylong
timestampMillis()
Return this version's timestamp.int
versionId()
Return this version's id.
-
-
-
Method Detail
-
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
java.util.Map<java.lang.String,java.lang.String> summary()
Return the version summary- Returns:
- a version summary
-
representations
java.util.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
default java.lang.String 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
default java.lang.String 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.
-
-