Package org.apache.iceberg.view
Class BaseView
- java.lang.Object
-
- org.apache.iceberg.view.BaseView
-
- All Implemented Interfaces:
HasViewOperations,View
public class BaseView extends Object implements View, HasViewOperations
BaseViewimplementation.This can be extended by providing a
ViewOperationsto the constructor.
-
-
Constructor Summary
Constructors Constructor Description BaseView(ViewOperations ops, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersioncurrentVersion()Get the currentversionfor this view, or null if there are no versions.List<HistoryEntry>history()Get the version history of this table.ViewOperationsoperations()Map<String,String>properties()Return a map of string properties for this view.StringtoString()UpdatePropertiesupdateProperties()Update view properties and commit the changes.Versionversion(int versionId)Get aversionin this view by ID.Iterable<Version>versions()Get theversionsof this view.
-
-
-
Constructor Detail
-
BaseView
public BaseView(ViewOperations ops, String name)
-
-
Method Detail
-
operations
public ViewOperations operations()
- Specified by:
operationsin interfaceHasViewOperations
-
currentVersion
public Version 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
public Version version(int versionId)
Description copied from interface:ViewGet aversionin this view by ID.
-
versions
public Iterable<Version> versions()
Description copied from interface:ViewGet theversionsof this view.
-
history
public List<HistoryEntry> history()
Description copied from interface:ViewGet the version history of this table.- Specified by:
historyin interfaceView- Returns:
- a list of
HistoryEntry
-
updateProperties
public UpdateProperties updateProperties()
Description copied from interface:ViewUpdate view properties and commit the changes.- Specified by:
updatePropertiesin interfaceView- Returns:
- a new
UpdateProperties
-
-