23 #ifndef JULEA_DISTRIBUTION_H
24 #define JULEA_DISTRIBUTION_H
26 #if !defined(JULEA_H) && !defined(JULEA_COMPILATION)
27 #error "Only <julea.h> can be included directly."
JDistributionType
Definition: jdistribution.h:45
void j_distribution_set(JDistribution *distribution, gchar const *key, guint64 value)
Definition: jdistribution.c:141
JDistribution * j_distribution_new_for_configuration(JDistributionType type, JConfiguration *configuration)
Definition: jdistribution.c:286
JDistribution * j_distribution_ref(JDistribution *distribution)
Definition: jdistribution.c:100
gboolean j_distribution_distribute(JDistribution *distribution, guint *index, guint64 *new_length, guint64 *new_offset, guint64 *block_id)
Definition: jdistribution.c:179
void j_distribution_set_block_size(JDistribution *distribution, guint64 block_size)
Definition: jdistribution.c:127
void j_distribution_reset(JDistribution *distribution, guint64 length, guint64 offset)
Definition: jdistribution.c:169
G_END_DECLS G_BEGIN_DECLS JDistribution * j_distribution_new(JDistributionType type)
Definition: jdistribution.c:88
void j_distribution_deserialize(JDistribution *distribution, bson_t const *b)
Definition: jdistribution.c:213
void j_distribution_set2(JDistribution *distribution, gchar const *key, guint64 value1, guint64 value2)
Definition: jdistribution.c:155
bson_t * j_distribution_serialize(JDistribution *distribution)
Definition: jdistribution.c:192
void j_distribution_unref(JDistribution *distribution)
Definition: jdistribution.c:112
JDistribution * j_distribution_new_from_bson(bson_t const *b)
Definition: jdistribution.c:272
@ J_DISTRIBUTION_ROUND_ROBIN
Definition: jdistribution.h:46
@ J_DISTRIBUTION_WEIGHTED
Definition: jdistribution.h:48
@ J_DISTRIBUTION_SINGLE_SERVER
Definition: jdistribution.h:47
Definition: jconfiguration.c:46
Definition: jdistribution.c:48
gpointer distribution
Definition: jdistribution.c:57
JDistributionType type
Definition: jdistribution.c:52