Class BaseView

java.lang.Object
org.apache.iceberg.viewdepoc.BaseView
All Implemented Interfaces:
HasViewOperations, View

public class BaseView extends Object implements View, HasViewOperations
Base View implementation.

This can be extended by providing a ViewOperations to the constructor.

  • Constructor Details

  • Method Details

    • operations

      public ViewOperations operations()
      Specified by:
      operations in interface HasViewOperations
    • currentVersion

      public Version currentVersion()
      Description copied from interface: View
      Get the current version for this view, or null if there are no versions.
      Specified by:
      currentVersion in interface View
      Returns:
      the current view version.
    • version

      public Version version(int versionId)
      Description copied from interface: View
      Get a version in this view by ID.
      Specified by:
      version in interface View
      Parameters:
      versionId - version ID
      Returns:
      a Version, or null if the ID cannot be found
    • versions

      public Iterable<Version> versions()
      Description copied from interface: View
      Get the versions of this view.
      Specified by:
      versions in interface View
      Returns:
      an Iterable of versions of this view.
    • history

      public List<HistoryEntry> history()
      Description copied from interface: View
      Get the version history of this table.
      Specified by:
      history in interface View
      Returns:
      a list of HistoryEntry
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • updateProperties

      public UpdateProperties updateProperties()
      Description copied from interface: View
      Update view properties and commit the changes.
      Specified by:
      updateProperties in interface View
      Returns:
      a new UpdateProperties
    • properties

      public Map<String,String> properties()
      Description copied from interface: View
      Return a map of string properties for this view.
      Specified by:
      properties in interface View
      Returns:
      this view's properties map