|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRaccoon.QE.QueryNode
QueryNode : Class of Node in a SQL parse tree: LOCAL_SEL, NEIGHBOR_JOIN and PROJECT
Field Summary | |
boolean |
bSelAll
|
static int |
LOCAL_SEL
This kind of node only do the selection local. |
static int |
NEIGHBOR_JOIN
The kind of node do the join on its left child and its right child. |
java.lang.String |
nodeName
|
int |
nodeType
|
static int |
PROJECT
The kind if node do the project on the result of its left child. |
QueryEngine |
qe
|
java.lang.String |
relName
|
Constructor Summary | |
QueryNode(QueryEngine newQE)
|
Method Summary | |
void |
AddJoinCondition(CONDITION cond)
|
void |
AddLocalSelAttr(java.lang.String attrName)
|
void |
AddLocalSelCondition(CONDITION cond)
|
void |
AddProjAttributes(RELATTR attr)
|
int |
Close()
|
int |
DoIt()
|
int |
DoJoin()
|
int |
DoProject()
|
int |
DoSel()
|
int |
GetNodeType()
|
PVInstance |
getResult()
|
java.util.Vector |
joinVector(java.util.Vector leftVec,
java.util.Vector rightVec)
|
void |
removeDuplicte(java.util.Vector v)
|
void |
SetLeafNodeName(java.lang.String nodename)
|
void |
SetLeafRelName(java.lang.String relname)
|
void |
SetLeftNode(QueryNode node)
|
void |
SetNodeType(int type)
|
void |
SetProjAttributes(java.util.Vector selAttr)
|
void |
SetRightNode(QueryNode node)
|
void |
setSelAll(boolean flag)
|
static java.util.Vector |
SubsetVector(java.util.Vector v,
int[] indexArr)
return a subset of Vector only consisting index specified in the indexArr. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int LOCAL_SEL
public static final int NEIGHBOR_JOIN
public static final int PROJECT
public QueryEngine qe
public int nodeType
public java.lang.String relName
public java.lang.String nodeName
public boolean bSelAll
Constructor Detail |
public QueryNode(QueryEngine newQE)
Method Detail |
public void setSelAll(boolean flag)
public void SetLeafNodeName(java.lang.String nodename)
public void SetLeafRelName(java.lang.String relname)
public void SetNodeType(int type)
public void AddJoinCondition(CONDITION cond)
public void AddProjAttributes(RELATTR attr)
public void SetProjAttributes(java.util.Vector selAttr)
public void AddLocalSelCondition(CONDITION cond)
public void AddLocalSelAttr(java.lang.String attrName)
public void SetLeftNode(QueryNode node)
public void SetRightNode(QueryNode node)
public int DoIt() throws java.sql.SQLException, PVException
java.sql.SQLException
PVException
public int DoProject() throws java.sql.SQLException, PVException
java.sql.SQLException
PVException
public int DoSel() throws java.sql.SQLException, PVException
java.sql.SQLException
PVException
public int DoJoin() throws java.sql.SQLException, PVException
java.sql.SQLException
PVException
public PVInstance getResult()
public java.util.Vector joinVector(java.util.Vector leftVec, java.util.Vector rightVec)
public int Close()
public int GetNodeType()
public void removeDuplicte(java.util.Vector v)
public static java.util.Vector SubsetVector(java.util.Vector v, int[] indexArr)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |