Class FHIRDbTableSize
- java.lang.Object
-
- org.linuxforhealth.fhir.schema.size.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 tablevoid
accumulateIndexSize(java.lang.String indexName, long size)
Add the size of the named index to the modelvoid
accumulateRowEstimate(long rowEstimate)
Accumulate the row estimate valuevoid
accumulateTableSize(long tableSize)
Accumulate the table sizelong
getRowEstimate()
Get the rowEstimate valuelong
getTableSize()
Get the table size in byteslong
getTotalIndexSize()
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
-
-
-