Class PgMaterializedView

All Implemented Interfaces:
IOptionContainer, IRelation, ISearchPath, ISimpleOptionContainer, IStatement, IStatementContainer, IView, IHashable

public class PgMaterializedView extends PgAbstractView
PostgreSQL materialized view implementation. Materialized views are database objects that contain the results of a query and can be refreshed periodically to update the cached data.
  • Constructor Details

    • PgMaterializedView

      public PgMaterializedView(String name)
      Creates a new materialized view.
      Parameters:
      name - view name
  • Method Details

    • getTypeName

      public String getTypeName()
      Description copied from interface: IStatement
      Gets the type name of this statement for SQL generation.
      Returns:
      the type name
    • setMethod

      public void setMethod(String using)
    • setDistribution

      public void setDistribution(String distribution)
    • setIsWithData

      public void setIsWithData(Boolean isWithData)
    • setTablespace

      public void setTablespace(String tablespace)
    • computeHash

      public void computeHash(Hasher hasher)
      Description copied from interface: IHashable
      Computes the hash of the implementing object using the provided hasher. The implementation should call appropriate put methods on the hasher for all fields that should contribute to the hash value.
      Specified by:
      computeHash in interface IHashable
      Overrides:
      computeHash in class PgAbstractView
      Parameters:
      hasher - the hasher instance to use for hash computation
    • compare

      public boolean compare(IStatement obj)
      Description copied from class: AbstractStatement
      This method does not account for nested child PgStatements. Shallow version of AbstractStatement.equals(Object)
      Specified by:
      compare in interface IStatement
      Overrides:
      compare in class PgAbstractView