Package io.deephaven.json
Class ObjectField
java.lang.Object
io.deephaven.json.ObjectField
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enumThe behavior when a repeated field is encountered in a JSON object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaliases()The field name aliases.The array group forthisfield.static ObjectField.Builderbuilder()booleanIf the field name and aliases should be compared using case-sensitive equality.abstract Stringname()The canonical field name.static ObjectFieldCreates a field with a singlename.abstract Valueoptions()The value options.The behavior when a repeated field is encountered.
-
Constructor Details
-
ObjectField
public ObjectField()
-
-
Method Details
-
builder
-
of
Creates a field with a singlename. Equivalent tobuilder().name(name).options(options).build().- Parameters:
name- the nameoptions- the options- Returns:
- the field options
-
name
The canonical field name. -
options
The value options. -
aliases
The field name aliases. -
caseSensitive
@Default public boolean caseSensitive()If the field name and aliases should be compared using case-sensitive equality. By default istrue. -
repeatedBehavior
The behavior when a repeated field is encountered. By default isObjectField.RepeatedBehavior.ERROR. -
arrayGroup
The array group forthisfield. This is useful in scenarios wherethisfield's array is guaranteed to have the same cardinality as one or more other array fields. For example, in the following snippet, we might model "prices" and "quantities" as having the same array group:{ "prices": [1.1, 2.2, 3.3], "quantities": [9, 5, 42] }
-