Package org.apache.iceberg.view
Interface View
-
public interface ViewInterface for view definition.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ViewVersioncurrentVersion()Get the current version for this view, or null if there are no versions.java.util.List<ViewHistoryEntry>history()Get the version history of this table.java.lang.Stringname()java.util.Map<java.lang.String,java.lang.String>properties()Return a map of string properties for this view.Schemaschema()Return theschemafor this view.java.util.Map<java.lang.Integer,Schema>schemas()Return a map ofschemafor this view.UpdateViewPropertiesupdateProperties()Create a newUpdateViewPropertiesto update view properties.ViewVersionversion(int versionId)Get a version in this view by ID.java.lang.Iterable<ViewVersion>versions()Get the versions of this view.
-
-
-
Method Detail
-
name
java.lang.String name()
-
schemas
java.util.Map<java.lang.Integer,Schema> schemas()
Return a map ofschemafor this view.- Returns:
- this table's schema map
-
currentVersion
ViewVersion currentVersion()
Get the current version for this view, or null if there are no versions.- Returns:
- the current view version.
-
versions
java.lang.Iterable<ViewVersion> versions()
Get the versions of this view.- Returns:
- an Iterable of versions of this view.
-
version
ViewVersion version(int versionId)
Get a version in this view by ID.- Parameters:
versionId- version ID- Returns:
- a version, or null if the ID cannot be found
-
history
java.util.List<ViewHistoryEntry> history()
Get the version history of this table.- Returns:
- a list of
ViewHistoryEntry
-
properties
java.util.Map<java.lang.String,java.lang.String> properties()
Return a map of string properties for this view.- Returns:
- this view's properties map
-
updateProperties
UpdateViewProperties updateProperties()
Create a newUpdateViewPropertiesto update view properties.- Returns:
- a new
UpdateViewProperties
-
-