QueryHandlerAbstract.py 522 B

123456789101112
  1. # An abstract class template for query handler factory return object
  2. # try a 'naive' implementation without using abc
  3. class QueryHandlerAbstract():
  4. def __init__(self):
  5. if type(self) is QueryHandlerAbstract:
  6. raise Exception("QueryHandlerAbstract is an abstract class and can't be instantiated")
  7. def query(self, queryData, pandas=False, dbFile=None):
  8. raise Exception("Method not implemented")
  9. def textQuery(self, queryData):
  10. raise Exception("Method not implemented")