Package io.deephaven.json
Class ObjectField
java.lang.Object
io.deephaven.json.ObjectField
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static enum
The behavior when a repeated field is encountered in a JSON object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaliases()
The field name aliases.The array group forthis
field.static ObjectField.Builder
builder()
boolean
If the field name and aliases should be compared using case-sensitive equality.abstract String
name()
The canonical field name.static ObjectField
Creates a field with a singlename
.abstract Value
options()
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 forthis
field. This is useful in scenarios wherethis
field'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] }
-