![]() |
Hazelcast C++ Client
Hazelcast C++ Client Library
|
Configuration of an index. More...
#include <index_config.h>
Classes | |
struct | bitmap_index_options |
Public Types | |
enum | index_type { SORTED , HASH , BITMAP } |
Public Member Functions | |
index_config (index_type type) | |
Creates an index configuration of the given type. More... | |
template<typename ... T> | |
index_config (index_type t, T... attrs) | |
Creates an index configuration of the given type with provided attributes. More... | |
Public Attributes | |
boost::optional< std::string > | name |
Name of the index. | |
index_type | type |
Type of the index. | |
std::vector< std::string > | attributes |
Indexed attributes. | |
boost::optional< bitmap_index_options > | options |
Static Public Attributes | |
static const index_type | DEFAULT_TYPE = index_config::index_type::SORTED |
Configuration of an index.
Hazelcast support two types of indexes: sorted index and hash index. Sorted indexes could be used with equality and range predicates and have logarithmic search time. Hash indexes could be used with equality predicates and have constant search time assuming the hash function of the indexed field disperses the elements properly.
Index could be created on one or more attributes.
Definition at line 40 of file index_config.h.
Enumerator | |
---|---|
SORTED | Sorted index. Can be used with equality and range predicates. |
HASH | Hash index. Can be used with equality predicates. |
BITMAP | Bitmap index. Can be used with equality predicates. |
Definition at line 85 of file index_config.h.
hazelcast::client::config::index_config::index_config | ( | index_config::index_type | type | ) |
Creates an index configuration of the given type.
type | Index type. |
Definition at line 595 of file config.cpp.
|
inline |
Creates an index configuration of the given type with provided attributes.
type | Index type. |
attributes | Attributes to be indexed. |
Definition at line 125 of file index_config.h.