Class MaterializedPgView

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

public final class MaterializedPgView extends AbstractPgView
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

    • MaterializedPgView

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

    • setMethod

      public void setMethod(String using)
    • setDistribution

      public void setDistribution(String distribution)
    • getTypeName

      public String getTypeName()
      Description copied from class: PgStatement
      Gets the type name of this statement for SQL generation.
      Overrides:
      getTypeName in class PgStatement
      Returns:
      the type name
    • setIsWithData

      public void setIsWithData(Boolean isWithData)
    • setTablespace

      public void setTablespace(String tablespace)
    • compare

      public boolean compare(PgStatement obj)
      Description copied from class: PgStatement
      This method does not account for nested child PgStatements. Shallow version of PgStatement.equals(Object)
      Overrides:
      compare in class AbstractPgView
    • 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 AbstractPgView
      Parameters:
      hasher - the hasher instance to use for hash computation