Package org.apache.iceberg.viewdepoc
Class BaseView
- java.lang.Object
-
- org.apache.iceberg.viewdepoc.BaseView
-
- All Implemented Interfaces:
HasViewOperations,View
public class BaseView extends java.lang.Object implements View, HasViewOperations
BaseViewimplementation.This can be extended by providing a
ViewOperationsto the constructor.
-
-
Constructor Summary
Constructors Constructor Description BaseView(ViewOperations ops, java.lang.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.java.util.List<HistoryEntry>history()Get the version history of this table.ViewOperationsoperations()java.util.Map<java.lang.String,java.lang.String>properties()Return a map of string properties for this view.java.lang.StringtoString()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.
-
-
-
Constructor Detail
-
BaseView
public BaseView(ViewOperations ops, java.lang.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 java.lang.Iterable<Version> versions()
Description copied from interface:ViewGet theversionsof this view.
-
history
public java.util.List<HistoryEntry> history()
Description copied from interface:ViewGet the version history of this table.- Specified by:
historyin interfaceView- Returns:
- a list of
HistoryEntry
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
updateProperties
public UpdateProperties updateProperties()
Description copied from interface:ViewUpdate view properties and commit the changes.- Specified by:
updatePropertiesin interfaceView- Returns:
- a new
UpdateProperties
-
properties
public java.util.Map<java.lang.String,java.lang.String> properties()
Description copied from interface:ViewReturn a map of string properties for this view.- Specified by:
propertiesin interfaceView- Returns:
- this view's properties map
-
-