Interface ViewVersion


public interface ViewVersion
A version of the view at a point in time.

A version consists of a view metadata file.

Versions are created by view operations, like Create and Replace.

  • Method Details

    • versionId

      int versionId()
      Return this version's id. Version ids are monotonically increasing
    • timestampMillis

      long timestampMillis()
      Return this version's timestamp.

      This timestamp is the same as those produced by System.currentTimeMillis().

      Returns:
      a long timestamp in milliseconds
    • summary

      Map<String,String> summary()
      Return the version summary
      Returns:
      a version summary
    • representations

      List<ViewRepresentation> representations()
      Return the list of other view representations.

      May contain SQL view representations for other dialects.

      Returns:
      the list of view representations
    • operation

      default String operation()
      Return the operation which produced the view version
      Returns:
      the string operation which produced the view version
    • schemaId

      int schemaId()
      The query output schema at version create time, without aliases
    • defaultCatalog

      default String defaultCatalog()
      The default catalog when the view is created.
    • defaultNamespace

      Namespace defaultNamespace()
      The default namespace to use when the SQL does not contain a namespace.