Package com.yahoo.schema.document
Class ComplexAttributeFieldUtils
java.lang.Object
com.yahoo.schema.document.ComplexAttributeFieldUtils
Utils used to check whether a complex field supports being represented as struct field attributes.
Currently we support:
- array of simple struct
- map of primitive type to simple struct
- map of primitive type to primitive type
A simple struct can contain fields of any type, but only fields of primitive type can be defined as
struct field attributes in the complex field using the simple struct.
- Author:
- geirst
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
static boolean
static boolean
static boolean
static boolean
isPrimitiveType
(com.yahoo.document.DataType dataType) static boolean
isPrimitiveType
(Attribute attribute) static boolean
-
Constructor Details
-
ComplexAttributeFieldUtils
public ComplexAttributeFieldUtils()
-
-
Method Details
-
isSupportedComplexField
-
isArrayOfSimpleStruct
-
isMapOfSimpleStruct
-
isMapOfPrimitiveType
-
isPrimitiveType
-
isPrimitiveType
public static boolean isPrimitiveType(com.yahoo.document.DataType dataType) -
isComplexFieldWithOnlyStructFieldAttributes
-