public static final class SchemaMetadata.FieldMetadata extends Iced
| Modifier and Type | Field and Description |
|---|---|
boolean |
is_gridable
Is this field gridable? Set from the @API annotation.
|
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 |
|---|
SchemaMetadata.FieldMetadata() |
SchemaMetadata.FieldMetadata(Schema schema,
java.lang.reflect.Field f)
Create a new FieldMetadata object for the given Field of the given Schema.
|
SchemaMetadata.FieldMetadata(java.lang.String name,
java.lang.String type,
boolean is_schema,
java.lang.String schema_name,
Iced value,
java.lang.String help,
java.lang.String label,
boolean required,
API.Level level,
API.Direction direction,
java.lang.String[] values,
boolean json,
java.lang.String[] is_member_of_frames,
java.lang.String[] is_mutually_exclusive_with) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
consType(Schema schema,
java.lang.Class clz,
java.lang.String field_name)
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)
Factory method to create a new FieldMetadata instance if the Field has an @API annotation.
|
clone, copyOver, frozenType, read_impl, read, readExternal, readJSON_impl, readJSON, toJsonString, write_impl, write, writeExternal, writeJSON_impl, writeJSONpublic 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_gridable
public SchemaMetadata.FieldMetadata()
public SchemaMetadata.FieldMetadata(java.lang.String name,
java.lang.String type,
boolean is_schema,
java.lang.String schema_name,
Iced value,
java.lang.String help,
java.lang.String label,
boolean required,
API.Level level,
API.Direction direction,
java.lang.String[] values,
boolean json,
java.lang.String[] is_member_of_frames,
java.lang.String[] is_mutually_exclusive_with)
name - field nametype - field type, which can be a primitive type like "string" or "double" or an H2O type like ModelParametersvalue - value of the field, represented as a stringhelp - help text (description) for the fieldlabel - label for the field in the UI, if it should be different from the field namerequired - if the field is an INPUT field is it required, or is there a reasonable default value?level - one of {critical, secondary, expert}: is this a basic field that everyone needs to set, or something only for experts?direction - one of {INPUT, OUTPUT, INOUT}: is this something the client needs to supply, or something that's only generated by H2O?values - for enum-type fields this is a list of allowed string valuesjson - should this field be included in generated JSON?public SchemaMetadata.FieldMetadata(Schema schema, java.lang.reflect.Field f)
schema - water.api.Schema objectf - java.lang.reflect.Field for the Schema classwater.api.SchemaMetadata.FieldMetadata#FieldMetadata(String, String, boolean, String, Iced, String, String, boolean, water.api.API.Level, water.api.API.Direction, String[], boolean, String[], String[])public static SchemaMetadata.FieldMetadata createIfApiAnnotation(Schema schema, java.lang.reflect.Field f)
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)
public static Iced consValue(java.lang.Object o)