Package io.github.mfvanek.pg.checks.host
Class ColumnsWithSerialTypesCheckOnHost
java.lang.Object
io.github.mfvanek.pg.checks.host.ColumnsWithSerialTypesCheckOnHost
- All Implemented Interfaces:
DatabaseCheckOnHost<ColumnWithSerialType>
,DiagnosticAware
,RawTypeAware<ColumnWithSerialType>
,HostAware
Check for columns of serial types that are not primary keys on a specific host.
- Since:
- 0.6.2
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns columns with serial types that are not primary keys in the specified schema.protected List<ColumnWithSerialType>
executeQuery
(PgContext pgContext, ResultSetExtractor<ColumnWithSerialType> rse) Gets the diagnostic - a rule related to the check.getHost()
Gets information about host in the cluster.getType()
Gets original java type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.mfvanek.pg.common.maintenance.DatabaseCheckOnHost
check
-
Field Details
-
TABLE_NAME
- See Also:
-
INDEX_NAME
- See Also:
-
TABLE_SIZE
- See Also:
-
INDEX_SIZE
- See Also:
-
BLOAT_SIZE
- See Also:
-
BLOAT_PERCENTAGE
- See Also:
-
-
Constructor Details
-
ColumnsWithSerialTypesCheckOnHost
-
-
Method Details
-
check
Returns columns with serial types that are not primary keys in the specified schema.- Parameters:
pgContext
- check's context with the specified schema- Returns:
- list of columns with serial types that are not primary keys
- See Also:
-
getType
Gets original java type.- Specified by:
getType
in interfaceRawTypeAware<T extends DbObject>
- Returns:
- java type representing database object
-
getDiagnostic
Gets the diagnostic - a rule related to the check.- Specified by:
getDiagnostic
in interfaceDiagnosticAware
- Returns:
- diagnostic
- See Also:
-
getHost
Gets information about host in the cluster. -
executeQuery
@Nonnull protected List<ColumnWithSerialType> executeQuery(@Nonnull PgContext pgContext, @Nonnull ResultSetExtractor<ColumnWithSerialType> rse)
-