public class SimpleQueryRecordReporter extends Object
QueryRecord object.| Constructor and Description |
|---|
SimpleQueryRecordReporter() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
checkTruncation(List<String> listFooter, StringBuilder sbName, int nColumnWidth)
Check if the given name will be truncated in the table, and if yes, add the full name to the footer table.
|
static String |
report(QueryRecord record)
Return a report for the given query record.
|
protected static String |
reportFooter(List<String> listFooter)
Report the index look ups.
|
protected static String |
reportFooterItem(int n, String sItem)
Print the full name that corresponds to the given footer number.
|
protected static String |
reportIndexLookupRecord(int nIndexLookupId, QueryRecord.PartialResult.IndexLookupRecord record, List<String> listFooter)
Report the given index lookup record with the given id.
|
protected static String |
reportIndexLookUps(List<QueryRecord.PartialResult.IndexLookupRecord> listIndexLookups, List<String> listFooter)
Report the index look ups.
|
protected static String |
reportResult(QueryRecord.PartialResult result, QueryRecorder.RecordType type, List<QueryRecord.PartialResult.IndexLookupRecord> listIndexLookups, boolean fReportPartition, List<String> listFooter)
Report the given result.
|
protected static String |
reportStep(QueryRecord.PartialResult.Step step, QueryRecorder.RecordType type, List<QueryRecord.PartialResult.IndexLookupRecord> listIndexLookups, int nLevel, List<String> listFooter)
Report the given step.
|
public static String report(QueryRecord record)
record - the recordprotected static String reportResult(QueryRecord.PartialResult result, QueryRecorder.RecordType type, List<QueryRecord.PartialResult.IndexLookupRecord> listIndexLookups, boolean fReportPartition, List<String> listFooter)
result - the resulttype - the record typelistIndexLookups - the list of lookup idsfReportPartition - indicates whether or not to report partitionslistFooter - the list of full names which were truncated elsewhere in the reportprotected static String reportIndexLookUps(List<QueryRecord.PartialResult.IndexLookupRecord> listIndexLookups, List<String> listFooter)
listIndexLookups - the list of lookup idslistFooter - the list containing complete names which were truncated elsewhere in the reportprotected static String reportFooter(List<String> listFooter)
listFooter - the list of full names to be reportedprotected static String reportStep(QueryRecord.PartialResult.Step step, QueryRecorder.RecordType type, List<QueryRecord.PartialResult.IndexLookupRecord> listIndexLookups, int nLevel, List<String> listFooter)
step - the steptype - the record typelistIndexLookups - the list of lookup idsnLevel - the indent levellistFooter - the list containing complete names, which had to be truncated in the main reportprotected static void checkTruncation(List<String> listFooter, StringBuilder sbName, int nColumnWidth)
listFooter - the list containing complete namessbName - the name to checknColumnWidth - the width of the table column, where the name must fitprotected static String reportIndexLookupRecord(int nIndexLookupId, QueryRecord.PartialResult.IndexLookupRecord record, List<String> listFooter)
nIndexLookupId - the index lookup idrecord - the index lookup recordlistFooter - the list containing complete names, which had to be truncatedprotected static String reportFooterItem(int n, String sItem)
n - the number used in the main report as a footer pointersItem - the footer item to print