strus  0.17
valueIteratorInterface.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
10 #ifndef _STRUS_VALUE_ITERATOR_INTERFACE_HPP_INCLUDED
11 #define _STRUS_VALUE_ITERATOR_INTERFACE_HPP_INCLUDED
12 #include "strus/index.hpp"
13 #include <string>
14 #include <vector>
15 
16 namespace strus
17 {
18 
22 {
23 public:
25 
29  virtual void skip( const char* value, std::size_t size)=0;
30 
34  virtual void skipPrefix( const char* value, std::size_t size)=0;
35 
40  virtual std::vector<std::string> fetchValues( std::size_t maxNofElements)=0;
41 };
42 
43 }//namespace
44 #endif
45 
46 
Numeric types used for local and global indices.
virtual void skip(const char *value, std::size_t size)=0
Set the next key to find.
Structure that represents a set of strings as iterator.
Definition: valueIteratorInterface.hpp:21
virtual void skipPrefix(const char *value, std::size_t size)=0
Set the next key to find with the condition that all elements fetched contain the key specified as pr...
virtual ~ValueIteratorInterface()
Definition: valueIteratorInterface.hpp:24
virtual std::vector< std::string > fetchValues(std::size_t maxNofElements)=0
Fetch the next N elements.