Package org.apache.iceberg.viewdepoc
Class BaseView
java.lang.Object
org.apache.iceberg.viewdepoc.BaseView
- All Implemented Interfaces:
HasViewOperations,View
Base
View implementation.
This can be extended by providing a ViewOperations to the constructor.
-
Constructor Summary
Constructors -
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.toString()Update view properties and commit the changes.version(int versionId) Get aversionin this view by ID.versions()Get theversionsof this view.
-
Constructor Details
-
BaseView
-
-
Method Details
-
operations
- Specified by:
operationsin interfaceHasViewOperations
-
currentVersion
Description copied from interface:ViewGet the currentversionfor this view, or null if there are no versions.- Specified by:
currentVersionin interfaceView- Returns:
- the current view version.
-
version
Description copied from interface:ViewGet aversionin this view by ID. -
versions
Description copied from interface:ViewGet theversionsof this view. -
history
Description copied from interface:ViewGet the version history of this table.- Specified by:
historyin interfaceView- Returns:
- a list of
HistoryEntry
-
toString
-
updateProperties
Description copied from interface:ViewUpdate view properties and commit the changes.- Specified by:
updatePropertiesin interfaceView- Returns:
- a new
UpdateProperties
-
properties
Description copied from interface:ViewReturn a map of string properties for this view.- Specified by:
propertiesin interfaceView- Returns:
- this view's properties map
-