public static final class SchemaMetadata.FieldMetadata extends Iced
Modifier and Type | Field and Description |
---|---|
java.lang.String |
inherited_from
If this field is inherited from a class higher in the hierarchy which one?
|
boolean |
is_gridable
Is this field gridable? Set from the @API annotation.
|
boolean |
is_inherited
Is this field inherited from a class higher in the hierarchy?
|
boolean |
is_schema
Type for this field is itself a Schema.
|
java.lang.String |
name
Field name in the POJO.
|
java.lang.String |
schema_name
Schema name for this field, if it is_schema.
|
java.lang.String |
type
Type for this field.
|
Iced |
value
Value for this field.
|
Constructor and Description |
---|
FieldMetadata() |
FieldMetadata(Schema schema,
java.lang.reflect.Field f,
java.util.List<java.lang.reflect.Field> superclassFields)
Create a new FieldMetadata object for the given Field of the given Schema.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
consType(Schema schema,
java.lang.Class clz,
java.lang.String field_name,
API annotation)
For a given Class generate a client-friendly type name (e.g., int[][] or Frame).
|
static Iced |
consValue(java.lang.Object o) |
static SchemaMetadata.FieldMetadata |
createIfApiAnnotation(Schema schema,
java.lang.reflect.Field f,
java.util.List<java.lang.reflect.Field> superclassFields)
Factory method to create a new FieldMetadata instance if the Field has an @API annotation.
|
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
public java.lang.String name
public java.lang.String type
public boolean is_schema
public java.lang.String schema_name
public Iced value
public boolean is_inherited
public java.lang.String inherited_from
public boolean is_gridable
public FieldMetadata()
public FieldMetadata(Schema schema, java.lang.reflect.Field f, java.util.List<java.lang.reflect.Field> superclassFields)
schema
- water.api.Schema objectf
- java.lang.reflect.Field for the Schema classpublic static SchemaMetadata.FieldMetadata createIfApiAnnotation(Schema schema, java.lang.reflect.Field f, java.util.List<java.lang.reflect.Field> superclassFields)
schema
- water.api.Schema objectf
- java.lang.reflect.Field for the Schema classpublic static java.lang.String consType(Schema schema, java.lang.Class clz, java.lang.String field_name, API annotation)
public static Iced consValue(java.lang.Object o)