public class ProfileParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProfileParser.Aggregator |
static class |
ProfileParser.CostPrinter
Print out the tree showing a comparison of estimated vs.
|
static class |
ProfileParser.FindOpVisitor |
static class |
ProfileParser.FragInfo
Information for a fragment, including the operators
in that fragment and the set of minor fragments.
|
static class |
ProfileParser.MinorFragInfo
Information about a minor fragment as parsed from the profile.
|
static class |
ProfileParser.OperatorProfile
Detailed information about each operator within a minor fragment
for a major fragment.
|
static class |
ProfileParser.OperatorSummary
Information about an operator definition: the plan-time information
that appears in the plan portion of the profile.
|
static class |
ProfileParser.TimePrinter |
static class |
ProfileParser.TreePrinter
Print the operator tree for analysis.
|
static class |
ProfileParser.TreeVisitor
Visit a tree of operator definitions to support printing,
analysis and other tasks.
|
Constructor and Description |
---|
ProfileParser(File file) |
Modifier and Type | Method and Description |
---|---|
void |
buildTree()
Reconstruct the operator tree from parsed information.
|
List<FieldDef> |
getColumns(String plan) |
JsonArray |
getFragmentProfile() |
List<ProfileParser.OperatorSummary> |
getOpDefn(String target) |
List<ProfileParser.OperatorSummary> |
getOpDefsOfType(int type) |
Map<Integer,String> |
getOperators() |
Map<Integer,ProfileParser.OperatorProfile> |
getOpInfo()
We often run test queries single threaded to make analysis of the profile
easier.
|
List<ProfileParser.OperatorProfile> |
getOpsOfType(int type)
For a single-slice query, get all operators of a given numeric operator
type.
|
String |
getPlan() |
List<String> |
getPlans() |
String |
getQuery() |
List<String> |
getScans() |
static long |
percent(long value,
long total) |
void |
print()
For a single-slice query, print a summary of the operator stack
and costs.
|
void |
printPlan() |
void |
printTime() |
void |
simplePrint() |
public ProfileParser(File file) throws IOException
IOException
public void buildTree()
public String getQuery()
public String getPlan()
public JsonArray getFragmentProfile()
public Map<Integer,ProfileParser.OperatorProfile> getOpInfo()
public List<ProfileParser.OperatorProfile> getOpsOfType(int type)
type
- the operator type as specified in
UserBitShared.CoreOperatorType
public List<ProfileParser.OperatorSummary> getOpDefsOfType(int type)
public void printPlan()
public void printTime()
public void print()
public void simplePrint()
public static long percent(long value, long total)
public List<ProfileParser.OperatorSummary> getOpDefn(String target)
Copyright © 2021 The Apache Software Foundation. All rights reserved.