Package io.github.mfvanek.pg.model.index
Class IndexWithSize
java.lang.Object
io.github.mfvanek.pg.model.index.Index
io.github.mfvanek.pg.model.index.IndexWithSize
- All Implemented Interfaces:
IndexNameAware
,IndexSizeAware
,TableNameAware
,Comparable<Index>
- Direct Known Subclasses:
IndexWithBloat
,IndexWithNulls
,UnusedIndex
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
IndexWithSize
(String tableName, String indexName, long indexSizeInBytes) -
Method Summary
Modifier and TypeMethodDescriptionlong
Gets index size in bytes.protected String
static IndexWithSize
toString()
Methods inherited from class io.github.mfvanek.pg.model.index.Index
compareTo, equals, getIndexName, getTableName, hashCode, of
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.mfvanek.pg.model.index.IndexNameAware
getIndexName
-
Constructor Details
-
IndexWithSize
-
-
Method Details
-
getIndexSizeInBytes
public long getIndexSizeInBytes()Gets index size in bytes.- Specified by:
getIndexSizeInBytes
in interfaceIndexSizeAware
- Returns:
- index size in bytes
-
innerToString
- Overrides:
innerToString
in classIndex
-
toString
-
of
public static IndexWithSize of(@Nonnull String tableName, @Nonnull String indexName, long indexSizeInBytes)
-