public class OptNode extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OptNode.ExecType |
static class |
OptNode.NodeType |
static class |
OptNode.ParamType |
Constructor and Description |
---|
OptNode(OptNode.NodeType type) |
OptNode(OptNode.NodeType ntype,
OptNode.ExecType etype) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(OptNode child) |
void |
addChilds(ArrayList<OptNode> childs) |
void |
addParam(OptNode.ParamType ptype,
String val) |
void |
checkAndCleanupLeafNodes() |
void |
checkAndCleanupRecursiveFunc(Set<String> stack) |
boolean |
exchangeChild(OptNode oldNode,
OptNode newNode) |
String |
explain(int level,
boolean withDetails)
Explain tool: prints the hierarchical plan to
stdout . |
int |
getBeginLine() |
ArrayList<OptNode> |
getChilds() |
int |
getEndLine() |
OptNode.ExecType |
getExecType() |
long |
getID() |
String |
getInstructionName() |
int |
getK() |
long |
getMaxC(long N) |
long |
getMaxProblemSize()
Determines the maximum problem size, in terms of the maximum
total number of inner loop iterations, of the entire subtree.
|
Collection<OptNode> |
getNodeList() |
Collection<OptNode> |
getNodeList(OptNode.ExecType et) |
OptNode.NodeType |
getNodeType() |
String |
getParam(OptNode.ParamType type) |
Collection<OptNode> |
getRelevantNodeList() |
int |
getTotalK() |
boolean |
hasNestedParallelism(boolean flagNested) |
boolean |
hasNestedPartitionReads(boolean flagNested) |
boolean |
hasOnlySimpleChilds() |
boolean |
isCPOnly()
Determines if all program blocks and instructions exhibit
the execution type CP.
|
boolean |
isLeaf() |
boolean |
isNodeType(OptNode.NodeType... types) |
boolean |
isRecursive() |
void |
setBeginLine(int line) |
void |
setChilds(ArrayList<OptNode> childs) |
void |
setEndLine(int line) |
void |
setExecType(OptNode.ExecType type) |
void |
setID(long id) |
void |
setK(int k) |
void |
setLineNumbers(int begin,
int end) |
void |
setNodeType(OptNode.NodeType type) |
void |
setParams(HashMap<OptNode.ParamType,String> params) |
void |
setSerialParFor()
Set the plan to a parallel degree of 1 (serial execution).
|
int |
size()
Gets the number of plan nodes.
|
public OptNode(OptNode.NodeType type)
public OptNode(OptNode.NodeType ntype, OptNode.ExecType etype)
public OptNode.NodeType getNodeType()
public void setNodeType(OptNode.NodeType type)
public boolean isNodeType(OptNode.NodeType... types)
public OptNode.ExecType getExecType()
public void setExecType(OptNode.ExecType type)
public void setID(long id)
public long getID()
public void addParam(OptNode.ParamType ptype, String val)
public void setParams(HashMap<OptNode.ParamType,String> params)
public String getParam(OptNode.ParamType type)
public int getBeginLine()
public void setBeginLine(int line)
public int getEndLine()
public void setEndLine(int line)
public void setLineNumbers(int begin, int end)
public void addChild(OptNode child)
public int getK()
public void setK(int k)
public boolean isLeaf()
public boolean hasOnlySimpleChilds()
public String getInstructionName()
public boolean isRecursive()
public Collection<OptNode> getNodeList()
public Collection<OptNode> getNodeList(OptNode.ExecType et)
public Collection<OptNode> getRelevantNodeList()
public void setSerialParFor()
public int size()
public boolean isCPOnly()
public int getTotalK()
public long getMaxC(long N)
public boolean hasNestedParallelism(boolean flagNested)
public boolean hasNestedPartitionReads(boolean flagNested)
public void checkAndCleanupLeafNodes()
public String explain(int level, boolean withDetails)
stdout
.level
- depth to print?withDetails
- if true, explain detailspublic long getMaxProblemSize()
Copyright © 2020 The Apache Software Foundation. All rights reserved.