public static enum JSONFormat.RecordFormat extends Enum<JSONFormat.RecordFormat>
Enum Constant and Description |
---|
ARRAY
A record is a JSON array.
|
OBJECT
A record is a JSON object.
|
Modifier and Type | Method and Description |
---|---|
static JSONFormat.RecordFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JSONFormat.RecordFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JSONFormat.RecordFormat ARRAY
This format allows for accessing columns by index, saving space by
avoiding repetitive column names in large result sets. Use this
preferrably with JSONFormat.header()
equal to
true
.
public static final JSONFormat.RecordFormat OBJECT
This format allows for accessing columns by name, repeating column names in each record.
public static JSONFormat.RecordFormat[] values()
for (JSONFormat.RecordFormat c : JSONFormat.RecordFormat.values()) System.out.println(c);
public static JSONFormat.RecordFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017. All Rights Reserved.