Hazelcast C++ Client
|
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. More... | |
index_type | type |
Type of the index. More... | |
std::vector< std::string > | attributes |
Indexed attributes. More... | |
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.
hazelcast::client::config::index_config::index_config | ( | index_config::index_type | type | ) |
Creates an index configuration of the given type.
type | Index type. |
|
inline |
Creates an index configuration of the given type with provided attributes.
type | Index type. |
attributes | Attributes to be indexed. |
std::vector<std::string> hazelcast::client::config::index_config::attributes |
Indexed attributes.
boost::optional<std::string> hazelcast::client::config::index_config::name |
Name of the index.
index_type hazelcast::client::config::index_config::type |
Type of the index.