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


Field Summary
protected  java.lang.String m_extraSelectAttr
           
protected  char m_extraSelectType
           
protected  Path[] m_paths
           
 
Fields inherited from class edu.berkeley.cs.db.yfilterplus.queryparser.Query
m_hasNestedPaths, m_hasPredicates, m_queryId
 
Constructor Summary
XPQuery(Path[] paths)
           
XPQuery(Path[] paths, char extraSelectType, java.lang.String extraSelectAttr)
           
 
Method Summary
 java.lang.String getExtraSelectAttribute()
           
 char getExtraSelectType()
           
 int getNoPaths()
           
 int getNoPredicates()
           
 Path[] getPaths()
           
 boolean hasExtraSelect()
           
static Query parseQuery(java.lang.String line, int queryId)
           
 void print()
           
 void printStepElementsToFile()
           
 void printToFile()
           
 void setQueryId(int id)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.berkeley.cs.db.yfilterplus.queryparser.Query
getQueryId, hasNestedPaths, hasPredicates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_paths

protected Path[] m_paths

m_extraSelectType

protected char m_extraSelectType

m_extraSelectAttr

protected java.lang.String m_extraSelectAttr
Constructor Detail

XPQuery

public XPQuery(Path[] paths)

XPQuery

public XPQuery(Path[] paths,
               char extraSelectType,
               java.lang.String extraSelectAttr)
Method Detail

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)