public static enum TupleJSONUtil.Options extends Enum<TupleJSONUtil.Options>
Enum Constant and Description |
---|
INCLUDE_NULL_FIELDS
Include null fields in JSON maps.
|
PREFER_LIST
Serialize sub tuples as JSON Lists.
|
PREFER_MAP
Serialize sub tuples as JSON Objects.
|
PRETTY_FORMAT
Print the JSON in pretty format
|
TIMESTAMP_AS_LONG
Save Timestamp fields as longs
|
Modifier and Type | Method and Description |
---|---|
static TupleJSONUtil.Options |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TupleJSONUtil.Options[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TupleJSONUtil.Options PREFER_MAP
PREFER_LIST and PREFER_MAP are mutually exclusive.
public static final TupleJSONUtil.Options PREFER_LIST
PREFER_LIST and PREFER_MAP are mutually exclusive.
public static final TupleJSONUtil.Options INCLUDE_NULL_FIELDS
public static final TupleJSONUtil.Options TIMESTAMP_AS_LONG
public static final TupleJSONUtil.Options PRETTY_FORMAT
public static TupleJSONUtil.Options[] values()
for (TupleJSONUtil.Options c : TupleJSONUtil.Options.values()) System.out.println(c);
public static TupleJSONUtil.Options 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 null