fvquerysource.ipp 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*##############################################################################
  2. HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ############################################################################## */
  13. #ifndef FVQUERYSOURCE_IPP
  14. #define FVQUERYSOURCE_IPP
  15. #include "fvdatasource.hpp"
  16. #include "dllserver.hpp"
  17. #include "hqlexpr.hpp"
  18. #include "eclhelper.hpp"
  19. #include "fvsource.ipp"
  20. #include "dadfs.hpp"
  21. class QueryDataSource : public PagedDataSource
  22. {
  23. public:
  24. QueryDataSource(IConstWUResult * _wuResult, const char * _wuid, const char * _username, const char * _password);
  25. ~QueryDataSource();
  26. virtual bool init();
  27. virtual bool loadBlock(__int64 startRow, offset_t startOffset);
  28. protected:
  29. bool createBrowseWU();
  30. virtual void improveLocation(__int64 row, RowLocation & location);
  31. protected:
  32. StringAttr browseWuid;
  33. StringAttr username;
  34. StringAttr password;
  35. };
  36. #endif