fvquerysource.ipp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*##############################################################################
  2. Copyright (C) 2011 HPCC Systems.
  3. All rights reserved. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. ############################################################################## */
  14. #ifndef FVQUERYSOURCE_IPP
  15. #define FVQUERYSOURCE_IPP
  16. #include "fvdatasource.hpp"
  17. #include "dllserver.hpp"
  18. #include "hqlexpr.hpp"
  19. #include "eclhelper.hpp"
  20. #include "fvsource.ipp"
  21. #include "dadfs.hpp"
  22. class QueryDataSource : public PagedDataSource
  23. {
  24. public:
  25. QueryDataSource(IConstWUResult * _wuResult, const char * _wuid, const char * _username, const char * _password);
  26. ~QueryDataSource();
  27. virtual bool init();
  28. virtual bool loadBlock(__int64 startRow, offset_t startOffset);
  29. protected:
  30. bool createBrowseWU();
  31. virtual void improveLocation(__int64 row, RowLocation & location);
  32. protected:
  33. StringAttr browseWuid;
  34. StringAttr cluster;
  35. StringAttr username;
  36. StringAttr password;
  37. };
  38. #endif