Class FHIRDbTableDetailWriter
- java.lang.Object
-
- org.linuxforhealth.fhir.schema.size.FHIRDbTableDetailWriter
-
- All Implemented Interfaces:
FHIRDbSizeModelVisitor
public class FHIRDbTableDetailWriter extends java.lang.Object implements FHIRDbSizeModelVisitor
Write output info for each table in the model
-
-
Constructor Summary
Constructors Constructor Description FHIRDbTableDetailWriter(java.io.Writer output)
Public constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
index(java.lang.String resourceType, java.lang.String tableName, java.lang.String indexName, long indexSize)
The size of an indexvoid
resource(java.lang.String resourceType, long logicalResourceRowEstimate, long resourceRowEstimate, long totalTableSize, long totalIndexSize, long rowEstimate, long resourceTableSize, long resourceIndexSize)
Resource-level summaryvoid
start()
Called once before any of the other methodsvoid
table(java.lang.String resourceType, java.lang.String tableName, boolean isParameter, long rowEstimate, long tableSize, long paramIndexSize)
The size of a table
-
-
-
Method Detail
-
resource
public void resource(java.lang.String resourceType, long logicalResourceRowEstimate, long resourceRowEstimate, long totalTableSize, long totalIndexSize, long rowEstimate, long resourceTableSize, long resourceIndexSize)
Description copied from interface:FHIRDbSizeModelVisitor
Resource-level summary- Specified by:
resource
in interfaceFHIRDbSizeModelVisitor
- Parameters:
resourceType
- the FHIR resource type namelogicalResourceRowEstimate
- estimate of rows in xx_logical_resourcesresourceRowEstimate
- estimate of rows in xx_resourcestotalTableSize
- the database level total table sizetotalIndexSize
- the database level total index sizerowEstimate
- the estimated number of row across all tables for the given resourceresourceTableSize
- the resource level total table sizeresourceIndexSize
- the resource level total index size
-
start
public void start()
Description copied from interface:FHIRDbSizeModelVisitor
Called once before any of the other methods- Specified by:
start
in interfaceFHIRDbSizeModelVisitor
-
table
public void table(java.lang.String resourceType, java.lang.String tableName, boolean isParameter, long rowEstimate, long tableSize, long paramIndexSize)
Description copied from interface:FHIRDbSizeModelVisitor
The size of a table- Specified by:
table
in interfaceFHIRDbSizeModelVisitor
-
index
public void index(java.lang.String resourceType, java.lang.String tableName, java.lang.String indexName, long indexSize)
Description copied from interface:FHIRDbSizeModelVisitor
The size of an index- Specified by:
index
in interfaceFHIRDbSizeModelVisitor
-
-