Package org.apache.iceberg.view
Class BaseView
java.lang.Object
org.apache.iceberg.view.BaseView
- All Implemented Interfaces:
Serializable,View
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the current version for this view, or null if there are no versions.history()Get the version history of this table.location()Return the view's base location.name()Return a map of string properties for this view.Create a newReplaceViewVersionto replace the view's current version.schema()Return theschemafor this view.schemas()Return a map ofschemafor this view.This implementation of sqlFor will resolve what is considered the "closest" dialect.Create a newUpdateLocationto set the view's location.Create a newUpdateViewPropertiesto update view properties.uuid()Returns the view's UUIDversion(int versionId) Get a version in this view by ID.versions()Get the versions of this view.
-
Constructor Details
-
BaseView
-
-
Method Details
-
name
-
operations
-
schema
Description copied from interface:ViewReturn theschemafor this view. -
schemas
Description copied from interface:ViewReturn a map ofschemafor this view. -
currentVersion
Description copied from interface:ViewGet the current version for this view, or null if there are no versions.- Specified by:
currentVersionin interfaceView- Returns:
- the current view version.
-
versions
Description copied from interface:ViewGet the versions of this view. -
version
Description copied from interface:ViewGet a version in this view by ID. -
history
Description copied from interface:ViewGet the version history of this table.- Specified by:
historyin interfaceView- Returns:
- a list of
ViewHistoryEntry
-
properties
Description copied from interface:ViewReturn a map of string properties for this view.- Specified by:
propertiesin interfaceView- Returns:
- this view's properties map
-
location
Description copied from interface:ViewReturn the view's base location. -
updateProperties
Description copied from interface:ViewCreate a newUpdateViewPropertiesto update view properties.- Specified by:
updatePropertiesin interfaceView- Returns:
- a new
UpdateViewProperties
-
replaceVersion
Description copied from interface:ViewCreate a newReplaceViewVersionto replace the view's current version.- Specified by:
replaceVersionin interfaceView- Returns:
- a new
ReplaceViewVersion
-
updateLocation
Description copied from interface:ViewCreate a newUpdateLocationto set the view's location.- Specified by:
updateLocationin interfaceView- Returns:
- a new
UpdateLocation
-
uuid
Description copied from interface:ViewReturns the view's UUID -
sqlFor
This implementation of sqlFor will resolve what is considered the "closest" dialect. If an exact match is found, then that is returned. Otherwise, the first representation would be returned. If no SQL representation is found, null is returned.
-