Class DuplicatedIndexesCheckOnHost

java.lang.Object
io.github.mfvanek.pg.checks.host.DuplicatedIndexesCheckOnHost
All Implemented Interfaces:
DatabaseCheckOnHost<io.github.mfvanek.pg.model.index.DuplicatedIndexes>, DiagnosticAware, RawTypeAware<io.github.mfvanek.pg.model.index.DuplicatedIndexes>, io.github.mfvanek.pg.connection.HostAware

public class DuplicatedIndexesCheckOnHost extends Object
Check for duplicated (completely identical) indexes on a specific host.
Since:
0.6.0
  • Field Details

  • Constructor Details

    • DuplicatedIndexesCheckOnHost

      public DuplicatedIndexesCheckOnHost(@Nonnull io.github.mfvanek.pg.connection.PgConnection pgConnection)
  • Method Details

    • check

      @Nonnull public List<io.github.mfvanek.pg.model.index.DuplicatedIndexes> check(@Nonnull io.github.mfvanek.pg.model.PgContext pgContext)
      Returns duplicated (completely identical) indexes in the specified schema.
      Parameters:
      pgContext - check's context with the specified schema
      Returns:
      list of duplicated indexes
      See Also:
      • PgContext
    • getType

      @Nonnull public Class<io.github.mfvanek.pg.model.index.DuplicatedIndexes> getType()
      Gets original java type.
      Specified by:
      getType in interface RawTypeAware<T extends io.github.mfvanek.pg.model.DbObject>
      Returns:
      java type representing database object
    • getDiagnostic

      @Nonnull public Diagnostic getDiagnostic()
      Gets the diagnostic - a rule related to the check.
      Specified by:
      getDiagnostic in interface DiagnosticAware
      Returns:
      diagnostic
      See Also:
    • getHost

      @Nonnull public io.github.mfvanek.pg.connection.PgHost getHost()
      Specified by:
      getHost in interface io.github.mfvanek.pg.connection.HostAware
    • executeQuery

      @Nonnull protected List<io.github.mfvanek.pg.model.index.DuplicatedIndexes> executeQuery(@Nonnull io.github.mfvanek.pg.model.PgContext pgContext, @Nonnull ResultSetExtractor<io.github.mfvanek.pg.model.index.DuplicatedIndexes> rse)