Package org.apache.iceberg.viewdepoc
Interface View
- All Known Implementing Classes:
BaseView
public interface View
Interface for view definition.
-
Method Summary
Modifier and TypeMethodDescriptionGet the currentversionfor this view, or null if there are no versions.history()Get the version history of this table.Return a map of string properties for this view.Update view properties and commit the changes.version(int versionId) Get aversionin this view by ID.versions()Get theversionsof this view.
-
Method Details
-
currentVersion
Version currentVersion()Get the currentversionfor this view, or null if there are no versions.- Returns:
- the current view version.
-
versions
Get theversionsof this view.- Returns:
- an Iterable of versions of this view.
-
version
Get aversionin this view by ID.- Parameters:
versionId- version ID- Returns:
- a Version, or null if the ID cannot be found
-
history
List<HistoryEntry> history()Get the version history of this table.- Returns:
- a list of
HistoryEntry
-
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
-