public class QueryLog extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
QueryLog() |
Modifier and Type | Method and Description |
---|---|
static void |
getTableHeaderXHTML(Writer w,
boolean clusterStats,
boolean detailedStats,
boolean mutationStats) |
static void |
getTableRowsXHTML(String queryStr,
IRunningQuery q,
Writer w,
Map<Integer,QueueStats> queueStats,
int maxBopLength,
boolean clusterStats,
boolean detailedStats,
boolean mutationStats)
Write the table rows.
|
static void |
getTableXHTML(String queryStr,
IRunningQuery q,
IRunningQuery[] children,
Writer w,
boolean summaryOnly,
int maxBopLength,
boolean clusterStats,
boolean detailedStats,
boolean mutationStats)
Format the data as an (X)HTML table.
|
static void |
log(IRunningQuery q)
Log rule execution statistics @ INFO.
|
static void |
logTableHeader() |
public static void logTableHeader()
public static void log(IRunningQuery q)
q
- The running query.public static void getTableXHTML(String queryStr, IRunningQuery q, IRunningQuery[] children, Writer w, boolean summaryOnly, int maxBopLength, boolean clusterStats, boolean detailedStats, boolean mutationStats) throws IOException
queryStr
- The original text of the query (e.g., a SPARQL query)
(optional).q
- The IRunningQuery
.children
- The child query(s) -or- null
if they are not to
be displayed.w
- Where to write the table.summaryOnly
- When true
only the summary row will be written.maxBopLength
- The maximum length to display from BOp.toString()
and
ZERO (0) to display everything. Data longer than this value
will be accessible from a flyover, but not directly visible in
the page.clusterStats
- When true
, provides additional statistics that
are specific to the scale-out cluster architecture.detailedStats
- When true
, provides additional query statistics
that are below the level of detail for most people.mutationStats
- When true
, provides additional statistics about
mutations (only report for inference rules at this time).IOException
public static void getTableHeaderXHTML(Writer w, boolean clusterStats, boolean detailedStats, boolean mutationStats) throws IOException
IOException
public static void getTableRowsXHTML(String queryStr, IRunningQuery q, Writer w, Map<Integer,QueueStats> queueStats, int maxBopLength, boolean clusterStats, boolean detailedStats, boolean mutationStats) throws IOException
queryStr
- The query text (optional).q
- The IRunningQuery
.w
- Where to write the rows.maxBopLength
- The maximum length to display from BOp.toString()
and
ZERO (0) to display everything. Data longer than this value
will be accessible from a flyover, but not directly visible in
the page.clusterStats
- When true
, provides additional statistics that
are specific to the scale-out cluster architecture.detailedStats
- When true
, provides additional query statistics
that are below the level of detail for most people.mutationStats
- When true
, provides additional statistics about
mutations (only report for inference rules at this time).IOException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.