public class AvroGenericUtils extends Object
Modifier and Type | Method and Description |
---|---|
static UUID |
createUuidFromFixed(org.apache.avro.generic.GenericFixed fixed)
Creates UUID from the given GenericFixed object.
|
static String |
getEnumFullName(org.apache.avro.generic.GenericEnumSymbol symbol)
Retrieves full schema name of the given enum.
|
static boolean |
isArray(Object field)
Checks if the given value is GenericArray.
|
static boolean |
isEnum(Object field)
Checks if the given value is GenericEnum.
|
static boolean |
isFixed(Object field)
Checks if the given value is GenericFixed.
|
static boolean |
isRecord(Object field)
Checkss if the given value is GenericRecord.
|
static boolean |
isReset(Object field)
checks if the given value is Reset (value's schema is "org.kaaproject.configuration.resetT").
|
static boolean |
isUnchanged(Object field)
Checks if the given value is Unchanged (value's schema is
"org.kaaproject.configuration.unchangedT").
|
static boolean |
isUuid(Object field)
Checks if the given value is UUID (value's schema is "org.kaaproject.configuration.uuidT").
|
public static UUID createUuidFromFixed(org.apache.avro.generic.GenericFixed fixed)
fixed
- the fixedpublic static boolean isFixed(Object field)
field
- object which going to be verified.public static boolean isEnum(Object field)
field
- object which going to be verified.public static boolean isArray(Object field)
field
- object which going to be verified.public static boolean isRecord(Object field)
field
- object which going to be verified.public static boolean isUuid(Object field)
field
- object which going to be verified.public static String getEnumFullName(org.apache.avro.generic.GenericEnumSymbol symbol)
symbol
- enum symbol whose name will be returned.public static boolean isReset(Object field)
field
- object which going to be verified.public static boolean isUnchanged(Object field)
field
- object which going to be verified.Copyright © 2016. All rights reserved.