Package org.apache.iceberg.view
Class BaseView
java.lang.Object
org.apache.iceberg.view.BaseView
- All Implemented Interfaces:
Serializable
,View
- See Also:
-
Constructor Summary
-
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 newReplaceViewVersion
to replace the view's current version.schema()
Return theschema
for this view.schemas()
Return a map ofschema
for this view.This implementation of sqlFor will resolve what is considered the "closest" dialect.Create a newUpdateLocation
to set the view's location.Create a newUpdateViewProperties
to 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:View
Return theschema
for this view. -
schemas
Description copied from interface:View
Return a map ofschema
for this view. -
currentVersion
Description copied from interface:View
Get the current version for this view, or null if there are no versions.- Specified by:
currentVersion
in interfaceView
- Returns:
- the current view version.
-
versions
Description copied from interface:View
Get the versions of this view. -
version
Description copied from interface:View
Get a version in this view by ID. -
history
Description copied from interface:View
Get the version history of this table.- Specified by:
history
in interfaceView
- Returns:
- a list of
ViewHistoryEntry
-
properties
Description copied from interface:View
Return a map of string properties for this view.- Specified by:
properties
in interfaceView
- Returns:
- this view's properties map
-
location
Description copied from interface:View
Return the view's base location. -
updateProperties
Description copied from interface:View
Create a newUpdateViewProperties
to update view properties.- Specified by:
updateProperties
in interfaceView
- Returns:
- a new
UpdateViewProperties
-
replaceVersion
Description copied from interface:View
Create a newReplaceViewVersion
to replace the view's current version.- Specified by:
replaceVersion
in interfaceView
- Returns:
- a new
ReplaceViewVersion
-
updateLocation
Description copied from interface:View
Create a newUpdateLocation
to set the view's location.- Specified by:
updateLocation
in interfaceView
- Returns:
- a new
UpdateLocation
-
uuid
Description copied from interface:View
Returns 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.
-