Modifier and Type | Method and Description |
---|---|
static String |
getFieldDescription(Field field) |
static String |
getFieldMode(Field field) |
static String |
getFieldName(Field field) |
static Set<Field> |
getFieldsToSerialize(Class<?> type)
Returns a set of all the non-transient, non-static fields without the annotation
BigQueryIgnore . |
static Type |
getParameterType(ParameterizedType parameterizedType) |
static Class<?> |
getParameterTypeOfRepeatedField(Field field)
Returns type of the parameter or component type for the repeated field depending on whether it
is a collection or an array.
|
static boolean |
isCollection(Class<?> type) |
static boolean |
isCollectionOrArray(Class<?> type) |
static boolean |
isGenericType(Type type) |
static boolean |
isParameterized(Type type) |
static void |
validateCollection(Field field)
A field of type
Collection must be parameterized for marshalling it into bigquery data
as a raw field can lead to ambiguous bigquery table definitions. |
static void |
validateNestedParameterizedType(Type parameterType)
Parameterized types nested more than one level cannot be determined at runtime.
|
static void |
validateNestedRepeatedType(Class<?> parameterType,
Field field)
A field of type Collection
|
public static String getFieldName(Field field)
field
- - Field
of a class.BigQueryDataField
annotated name. If annotation is not present then returns the
name of the field.public static String getFieldDescription(Field field)
field
- - Field
of a class.BigQueryDataField
annotation description. Null if annotation is not present.public static String getFieldMode(Field field)
field
- - Field
of a class.BigQueryDataField
annotation mode.public static Type getParameterType(ParameterizedType parameterizedType)
parameterizedType
- public static boolean isCollection(Class<?> type)
type
- Collection
classpublic static boolean isGenericType(Type type)
type
- public static boolean isParameterized(Type type)
type
- public static boolean isCollectionOrArray(Class<?> type)
type
- public static Set<Field> getFieldsToSerialize(Class<?> type)
BigQueryIgnore
.public static void validateCollection(Field field)
Collection
must be parameterized for marshalling it into bigquery data
as a raw field can lead to ambiguous bigquery table definitions.public static void validateNestedRepeatedType(Class<?> parameterType, Field field)
public static void validateNestedParameterizedType(Type parameterType)
Copyright © 2015 Google. All rights reserved.