Class IndexWithBloat

    • Method Detail

      • getBloatSizeInBytes

        public long getBloatSizeInBytes()
        Gets bloat amount in bytes.
        Specified by:
        getBloatSizeInBytes in interface BloatAware
        Returns:
        bloat amount
      • getBloatPercentage

        public int getBloatPercentage()
        Gets bloat percentage (in the range from 0 to 100 inclusive).
        Specified by:
        getBloatPercentage in interface BloatAware
        Returns:
        bloat percentage
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class IndexWithSize
      • of

        @Nonnull
        public static IndexWithBloat of​(@Nonnull
                                        java.lang.String tableName,
                                        @Nonnull
                                        java.lang.String indexName,
                                        long indexSizeInBytes,
                                        long bloatSizeInBytes,
                                        int bloatPercentage)
        Constructs a IndexWithBloat object.
        Parameters:
        tableName - table name; should be non blank.
        indexName - index name; should be non blank.
        indexSizeInBytes - index size in bytes; should be positive or zero.
        bloatSizeInBytes - bloat amount in bytes; should be positive or zero.
        bloatPercentage - bloat percentage in the range from 0 to 100 inclusive.
        Returns:
        IndexWithBloat