public class ScanNode extends RelationNode implements Projectable, SelectableNode, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected String |
alias |
protected boolean |
broadcastTable |
protected Schema |
logicalSchema |
protected EvalNode |
qual |
protected TableDesc |
tableDesc |
protected Target[] |
targets |
| Modifier | Constructor and Description |
|---|---|
|
ScanNode(int pid) |
protected |
ScanNode(int pid,
NodeType nodeType) |
| Modifier and Type | Method and Description |
|---|---|
int |
childNum() |
Object |
clone() |
boolean |
equals(Object obj) |
String |
getAlias() |
String |
getCanonicalName() |
LogicalNode |
getChild(int idx) |
Schema |
getLogicalSchema() |
Schema |
getPhysicalSchema() |
PlanString |
getPlanString() |
EvalNode |
getQual()
Get a filter condition
|
TableDesc |
getTableDesc() |
String |
getTableName() |
Target[] |
getTargets()
Get a list of targets
|
boolean |
hasAlias() |
int |
hashCode() |
boolean |
hasQual()
Checking if it has filter condition
|
boolean |
hasTargets()
check if this node has a target list
|
void |
init(TableDesc desc) |
void |
init(TableDesc desc,
String alias) |
boolean |
isBroadcastTable() |
static boolean |
isScanNode(LogicalNode node) |
void |
postOrder(LogicalNodeVisitor visitor) |
void |
preOrder(LogicalNodeVisitor visitor) |
void |
setBroadcastTable(boolean broadcastTable) |
void |
setQual(EvalNode evalTree)
Set a filter condition.
|
void |
setTargets(Target[] targets)
Set a target list
|
String |
toString() |
deepEquals, getCost, getInSchema, getOutSchema, getPID, getType, setCost, setInSchema, setOutSchema, setPID, setType, toJsonfinalize, getClass, notify, notifyAll, wait, wait, waitgetInSchema, getOutSchema, getPIDprotected TableDesc tableDesc
protected String alias
protected Schema logicalSchema
protected EvalNode qual
protected Target[] targets
protected boolean broadcastTable
protected ScanNode(int pid,
NodeType nodeType)
public ScanNode(int pid)
public int childNum()
childNum in class LogicalNodepublic LogicalNode getChild(int idx)
getChild in class LogicalNodepublic void init(TableDesc desc)
public String getTableName()
getTableName in class RelationNodepublic boolean hasAlias()
hasAlias in class RelationNodepublic String getAlias()
getAlias in class RelationNodepublic void setBroadcastTable(boolean broadcastTable)
public boolean isBroadcastTable()
public String getCanonicalName()
getCanonicalName in class RelationNodepublic Schema getLogicalSchema()
getLogicalSchema in class RelationNodepublic Schema getPhysicalSchema()
public boolean hasQual()
SelectableNodehasQual in interface SelectableNodepublic EvalNode getQual()
SelectableNodegetQual in interface SelectableNodepublic void setQual(EvalNode evalTree)
SelectableNodesetQual in interface SelectableNodeevalTree - EvalNode resulting in a boolean result.public boolean hasTargets()
ProjectablehasTargets in interface Projectablepublic void setTargets(Target[] targets)
ProjectablesetTargets in interface Projectabletargets - The array of targetspublic Target[] getTargets()
ProjectablegetTargets in interface Projectablepublic TableDesc getTableDesc()
public String toString()
toString in class LogicalNodepublic boolean equals(Object obj)
equals in class LogicalNodepublic Object clone() throws CloneNotSupportedException
clone in class LogicalNodeCloneNotSupportedExceptionpublic void preOrder(LogicalNodeVisitor visitor)
preOrder in class LogicalNodepublic void postOrder(LogicalNodeVisitor visitor)
postOrder in class LogicalNodepublic PlanString getPlanString()
getPlanString in class LogicalNodepublic static boolean isScanNode(LogicalNode node)
Copyright © 2015 Apache Software Foundation. All Rights Reserved.