client-cpp  0.0.1-SNAPSHOT
kaa::AvroGenericUtils Class Reference

#include <AvroGenericUtils.hpp>

Static Public Member Functions

static bool isUuid (const avro::GenericDatum &d)
 
static bool isFixed (const avro::GenericDatum &d)
 
static bool isEnum (const avro::GenericDatum &d)
 
static bool isRecord (const avro::GenericDatum &d)
 
static bool isArray (const avro::GenericDatum &d)
 
static bool isNull (const avro::GenericDatum &d)
 
static bool isReset (const avro::GenericDatum &d)
 
static bool isUnchanged (const avro::GenericDatum &d)
 
static uuid_t getUuidFromDatum (const avro::GenericDatum &datum)
 
static DeltaHandlerId getDeltaIDFromDatum (const avro::GenericDatum &datum)
 

Detailed Description

Common tools for avro generic objects.

Definition at line 34 of file AvroGenericUtils.hpp.

Member Function Documentation

static DeltaHandlerId kaa::AvroGenericUtils::getDeltaIDFromDatum ( const avro::GenericDatum &  datum)
inlinestatic

Convert UUID from the given GenericDatum object to DeltaHandlerId.

Returns
uuid object.
Exceptions
KaaExceptionAvro fixed object is not full to create uuid

Definition at line 161 of file AvroGenericUtils.hpp.

static uuid_t kaa::AvroGenericUtils::getUuidFromDatum ( const avro::GenericDatum &  datum)
inlinestatic

Retrieves UUID from the given GenericDatum object.

Returns
uuid object.
Exceptions
KaaExceptionAvro fixed object is not full to create uuid

Definition at line 142 of file AvroGenericUtils.hpp.

static bool kaa::AvroGenericUtils::isArray ( const avro::GenericDatum &  d)
inlinestatic

Tells if the given value is GenericArray.

Parameters
dobject which going to be verified.
Returns
true if the value is GenericArray, false otherwise.

Definition at line 91 of file AvroGenericUtils.hpp.

static bool kaa::AvroGenericUtils::isEnum ( const avro::GenericDatum &  d)
inlinestatic

Tells if the given value is GenericEnum.

Parameters
dobject which going to be verified.
Returns
true if the value is GenericEnum, false otherwise.

Definition at line 69 of file AvroGenericUtils.hpp.

static bool kaa::AvroGenericUtils::isFixed ( const avro::GenericDatum &  d)
inlinestatic

Tells if the given value is GenericFixed.

Parameters
dobject which going to be verified.
Returns
true if the value is GenericFixed, false otherwise.

Definition at line 58 of file AvroGenericUtils.hpp.

static bool kaa::AvroGenericUtils::isNull ( const avro::GenericDatum &  d)
inlinestatic

Tells if the given value is GenericEnum.

Parameters
dobject which going to be verified.
Returns
true if the value is GenericEnum, false otherwise.

Definition at line 102 of file AvroGenericUtils.hpp.

static bool kaa::AvroGenericUtils::isRecord ( const avro::GenericDatum &  d)
inlinestatic

Tells if the given value is GenericRecord.

Parameters
dobject which going to be verified.
Returns
true if the value is GenericRecord, false otherwise.

Definition at line 80 of file AvroGenericUtils.hpp.

static bool kaa::AvroGenericUtils::isReset ( const avro::GenericDatum &  d)
inlinestatic

Tells if the given value is reset type.

Parameters
dobject which going to be verified.
Returns
true if the value is reset type, false otherwise.

Definition at line 113 of file AvroGenericUtils.hpp.

static bool kaa::AvroGenericUtils::isUnchanged ( const avro::GenericDatum &  d)
inlinestatic

Tells if the given value is unchanged.

Parameters
dobject which going to be verified.
Returns
true if the value is unchanged, false otherwise.

Definition at line 128 of file AvroGenericUtils.hpp.

static bool kaa::AvroGenericUtils::isUuid ( const avro::GenericDatum &  d)
inlinestatic

Tells if the given value is UUID (value's schema is "org.kaaproject.configuration.uuidT").

Parameters
dobject which going to be verified.
Returns
true if the value is UUID, false otherwise.

Definition at line 43 of file AvroGenericUtils.hpp.


The documentation for this class was generated from the following file: