edu.berkeley.cs.db.yfilterplus.queryparser
Class XPQueryParser

java.lang.Object
  |
  +--edu.berkeley.cs.db.yfilterplus.queryparser.XPQueryParser
All Implemented Interfaces:
QueryParser

public class XPQueryParser
extends java.lang.Object
implements QueryParser


Nested Class Summary
protected static class XPQueryParser.ExtendedNestedPath
           
 
Field Summary
protected  java.io.BufferedReader m_in
           
protected  int m_noQueries
           
 
Constructor Summary
XPQueryParser(java.lang.String fileName)
           
 
Method Summary
static XPQuery compile(PathQuery query)
           
 int getNoQueries()
           
static void main(java.lang.String[] args)
           
 Query[] readNextQueriesBulk(int num)
           
 Query readNextQuery()
           
 java.lang.String readNextQueryString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_in

protected java.io.BufferedReader m_in

m_noQueries

protected int m_noQueries
Constructor Detail

XPQueryParser

public XPQueryParser(java.lang.String fileName)
Method Detail

readNextQueryString

public java.lang.String readNextQueryString()
Specified by:
readNextQueryString in interface QueryParser

readNextQuery

public Query readNextQuery()
Specified by:
readNextQuery in interface QueryParser

readNextQueriesBulk

public Query[] readNextQueriesBulk(int num)
Specified by:
readNextQueriesBulk in interface QueryParser

getNoQueries

public int getNoQueries()

compile

public static XPQuery compile(PathQuery query)
                       throws java.lang.Exception
java.lang.Exception

main

public static void main(java.lang.String[] args)