edu.berkeley.cs.db.yfilterplus.queryparser
Class XPQuery
java.lang.Object
|
+--edu.berkeley.cs.db.yfilterplus.queryparser.Query
|
+--edu.berkeley.cs.db.yfilterplus.queryparser.XPQuery
- public class XPQuery
- extends Query
Constructor Summary |
XPQuery(Path[] paths)
|
XPQuery(Path[] paths,
char extraSelectType,
java.lang.String extraSelectAttr)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_paths
protected Path[] m_paths
m_extraSelectType
protected char m_extraSelectType
m_extraSelectAttr
protected java.lang.String m_extraSelectAttr
XPQuery
public XPQuery(Path[] paths)
XPQuery
public XPQuery(Path[] paths,
char extraSelectType,
java.lang.String extraSelectAttr)
setQueryId
public void setQueryId(int id)
- Overrides:
setQueryId
in class Query
getPaths
public Path[] getPaths()
- Specified by:
getPaths
in class Query
getNoPaths
public int getNoPaths()
- Specified by:
getNoPaths
in class Query
getNoPredicates
public int getNoPredicates()
hasExtraSelect
public boolean hasExtraSelect()
- Overrides:
hasExtraSelect
in class Query
getExtraSelectType
public char getExtraSelectType()
- Overrides:
getExtraSelectType
in class Query
getExtraSelectAttribute
public java.lang.String getExtraSelectAttribute()
- Overrides:
getExtraSelectAttribute
in class Query
toString
public java.lang.String toString()
- Specified by:
toString
in class Query
print
public void print()
printToFile
public void printToFile()
printStepElementsToFile
public void printStepElementsToFile()
parseQuery
public static Query parseQuery(java.lang.String line,
int queryId)