Class FHIRDbTableSize
- java.lang.Object
-
- org.linuxforhealth.fhir.schema.size.FHIRDbTableSize
-
public class FHIRDbTableSize extends java.lang.ObjectSize 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 voidaccept(FHIRDbSizeModelVisitor visitor, java.lang.String resourceType, java.lang.String tableName, long totalTableSize, long totalIndexSize)Visits each of the indexes associated with this tablevoidaccumulateIndexSize(java.lang.String indexName, long size)Add the size of the named index to the modelvoidaccumulateRowEstimate(long rowEstimate)Accumulate the row estimate valuevoidaccumulateTableSize(long tableSize)Accumulate the table sizelonggetRowEstimate()Get the rowEstimate valuelonggetTableSize()Get the table size in byteslonggetTotalIndexSize()Get the total index size in bytes
-
-
-
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-
-
-