#include <AvroGenericUtils.hpp>
Common tools for avro generic objects.
Definition at line 34 of file AvroGenericUtils.hpp.
static DeltaHandlerId kaa::AvroGenericUtils::getDeltaIDFromDatum |
( |
const avro::GenericDatum & |
datum | ) |
|
|
inlinestatic |
static uuid_t kaa::AvroGenericUtils::getUuidFromDatum |
( |
const avro::GenericDatum & |
datum | ) |
|
|
inlinestatic |
Retrieves UUID from the given GenericDatum object.
- Returns
- uuid object.
- Exceptions
-
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
-
d | object 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
-
d | object 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
-
d | object 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
-
d | object 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
-
d | object 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
-
d | object 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
-
d | object 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
-
d | object 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: