Class FHIRDbTableSize


  • public class FHIRDbTableSize
    extends java.lang.Object
    Size data for a FHIR schema table object and its indexes. This object allows the sizes to be accumulated allowing it to be used to summarize data grouped by other dimensions.
    • Constructor Summary

      Constructors 
      Constructor Description
      FHIRDbTableSize()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(FHIRDbSizeModelVisitor visitor, java.lang.String resourceType, java.lang.String tableName, long totalTableSize, long totalIndexSize)
      Visits each of the indexes associated with this table
      void accumulateIndexSize​(java.lang.String indexName, long size)
      Add the size of the named index to the model
      void accumulateRowEstimate​(long rowEstimate)
      Accumulate the row estimate value
      void accumulateTableSize​(long tableSize)
      Accumulate the table size
      long getRowEstimate()
      Get the rowEstimate value
      long getTableSize()
      Get the table size in bytes
      long getTotalIndexSize()
      Get the total index size in bytes
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FHIRDbTableSize

        public FHIRDbTableSize()
    • Method Detail

      • accumulateTableSize

        public void accumulateTableSize​(long tableSize)
        Accumulate the table size
        Parameters:
        tableSize -
      • accumulateRowEstimate

        public void accumulateRowEstimate​(long rowEstimate)
        Accumulate the row estimate value
        Parameters:
        rowEstimate -
      • accumulateIndexSize

        public void accumulateIndexSize​(java.lang.String indexName,
                                        long size)
        Add the size of the named index to the model
        Parameters:
        indexName -
        size -
      • getRowEstimate

        public long getRowEstimate()
        Get the rowEstimate value
        Returns:
      • getTableSize

        public long getTableSize()
        Get the table size in bytes
        Returns:
      • getTotalIndexSize

        public long getTotalIndexSize()
        Get the total index size in bytes
        Returns:
      • accept

        public void accept​(FHIRDbSizeModelVisitor visitor,
                           java.lang.String resourceType,
                           java.lang.String tableName,
                           long totalTableSize,
                           long totalIndexSize)
        Visits each of the indexes associated with this table
        Parameters:
        visitor -
        resourceType -
        tableName -
        totalTableSize -
        totalIndexSize -