Package org.apache.iceberg.viewdepoc
Interface View
-
- All Known Implementing Classes:
BaseView
public interface ViewInterface for view definition.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VersioncurrentVersion()Get the currentversionfor this view, or null if there are no versions.java.util.List<HistoryEntry>history()Get the version history of this table.java.util.Map<java.lang.String,java.lang.String>properties()Return a map of string properties for this view.UpdatePropertiesupdateProperties()Update view properties and commit the changes.Versionversion(int versionId)Get aversionin this view by ID.java.lang.Iterable<Version>versions()Get theversionsof this view.
-
-
-
Method Detail
-
currentVersion
Version currentVersion()
Get the currentversionfor this view, or null if there are no versions.- Returns:
- the current view version.
-
versions
java.lang.Iterable<Version> versions()
Get theversionsof this view.- Returns:
- an Iterable of versions of this view.
-
version
Version version(int versionId)
Get aversionin this view by ID.- Parameters:
versionId- version ID- Returns:
- a Version, or null if the ID cannot be found
-
history
java.util.List<HistoryEntry> history()
Get the version history of this table.- Returns:
- a list of
HistoryEntry
-
properties
java.util.Map<java.lang.String,java.lang.String> properties()
Return a map of string properties for this view.- Returns:
- this view's properties map
-
updateProperties
UpdateProperties updateProperties()
Update view properties and commit the changes.- Returns:
- a new
UpdateProperties
-
-