Package io.deephaven.kafka.ingest
Class JsonNodeUtil
java.lang.Object
io.deephaven.kafka.ingest.JsonNodeUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BigDecimalgetBigDecimal(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a BigDecimal from aJsonNode.static @Nullable BigDecimalgetBigDecimal(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a BigDecimal from aJsonNode.static @Nullable BigDecimalgetBigDecimal(com.fasterxml.jackson.databind.JsonNode node) Returns a BigDecimal from aJsonNode.static BigIntegergetBigInteger(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a BigInteger from aJsonNode.static BigIntegergetBigInteger(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a BigInteger from aJsonNode.static @Nullable BigIntegergetBigInteger(com.fasterxml.jackson.databind.JsonNode node) Returns a BigInteger from aJsonNode.static BooleangetBoolean(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Boolean from aJsonNode.static BooleangetBoolean(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Boolean from aJsonNode.static @Nullable BooleangetBoolean(com.fasterxml.jackson.databind.JsonNode node) Returns a Boolean from aJsonNode.static @Nullable BytegetBoxedByte(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Byte from aJsonNode.static @Nullable BytegetBoxedByte(com.fasterxml.jackson.databind.JsonNode node) Returns a Byte from aJsonNode.static @Nullable CharactergetBoxedChar(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Character from aJsonNode.static @Nullable CharactergetBoxedChar(com.fasterxml.jackson.databind.JsonNode node) static @Nullable DoublegetBoxedDouble(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Double from aJsonNode.static @Nullable DoublegetBoxedDouble(com.fasterxml.jackson.databind.JsonNode node) Returns a Double from aJsonNode.static @Nullable FloatgetBoxedFloat(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Float from aJsonNode.static @Nullable FloatgetBoxedFloat(com.fasterxml.jackson.databind.JsonNode node) Returns a Float from aJsonNode.static @Nullable IntegergetBoxedInt(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns an Integer from aJsonNode.static @Nullable IntegergetBoxedInt(com.fasterxml.jackson.databind.JsonNode node) Returns an Integer from aJsonNode.static @Nullable LonggetBoxedLong(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Long from aJsonNode.static @Nullable LonggetBoxedLong(com.fasterxml.jackson.databind.JsonNode node) Returns a Long from aJsonNode.static @Nullable ShortgetBoxedShort(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Short from aJsonNode.static @Nullable ShortgetBoxedShort(com.fasterxml.jackson.databind.JsonNode node) static bytegetByte(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven byte (primitive byte with a reserved value for Null) from aJsonNode.static bytegetByte(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven byte (primitive byte with a reserved value for Null) from aJsonNode.static bytegetByte(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven byte (primitive byte with a reserved value for Null) from aJsonNode.static chargetChar(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven char (primitive char with a reserved value for Null) from aJsonNode.static chargetChar(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven char (primitive char with a reserved value for Null) from aJsonNode.static chargetChar(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven char (primitive char with a reserved value for Null) from aJsonNode.static doublegetDouble(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven double (primitive double with reserved values for null) from aJsonNode.static doublegetDouble(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven double (primitive double with reserved values for null) from aJsonNode.static doublegetDouble(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven double (primitive double with reserved values for null) from aJsonNode.static floatgetFloat(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven float (primitive float with reserved values for Null) from aJsonNode.static floatgetFloat(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven float (primitive float with reserved values for Null) from aJsonNode.static floatgetFloat(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven float (primitive float with reserved values for Null) from aJsonNode.static @Nullable InstantgetInstant(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns anInstantfrom aJsonNode.static @Nullable InstantgetInstant(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns anInstantfrom aJsonNode.static @Nullable InstantgetInstant(com.fasterxml.jackson.databind.JsonNode node) Returns anInstantfrom aJsonNode.static intgetInt(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven int (primitive int with reserved values for null) from aJsonNode.static intgetInt(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven int (primitive int with reserved values for null) from aJsonNode.static intgetInt(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven int (primitive int with reserved values for null) from aJsonNode.static longgetLong(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven long (primitive long with reserved values for Null) from aJsonNode.static longgetLong(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven long (primitive long with reserved values for Null) from aJsonNode.static longgetLong(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven long (primitive long with reserved values for null) from aJsonNode.static shortgetShort(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven short (primitive short with reserved values for Null) from aJsonNode.static shortgetShort(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven short (primitive short with reserved values for Null) from aJsonNode.static shortgetShort(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven short (primitive short with reserved values for Null) from aJsonNode.static @Nullable StringgetString(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a String from aJsonNode.static @Nullable StringgetString(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a String from aJsonNode.static @Nullable StringgetString(com.fasterxml.jackson.databind.JsonNode node) Returns a String from aJsonNode.static @Nullable ObjectgetValue(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a generic Object from aJsonNode.static @Nullable ObjectgetValue(com.fasterxml.jackson.databind.JsonNode node) Returns a generic Object from aJsonNode.static com.fasterxml.jackson.databind.JsonNodemakeJsonNode(com.fasterxml.jackson.databind.ObjectMapper mapper, String json)
-
Constructor Details
-
JsonNodeUtil
public JsonNodeUtil()
-
-
Method Details
-
makeJsonNode
public static com.fasterxml.jackson.databind.JsonNode makeJsonNode(com.fasterxml.jackson.databind.ObjectMapper mapper, String json) -
getInt
public static int getInt(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven int (primitive int with reserved values for null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Deephaven int (primitive int with reserved values for null)
-
getInt
public static int getInt(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven int (primitive int with reserved values for null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.- Returns:
- A Deephaven int (primitive int with reserved values for null)
-
getInt
public static int getInt(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven int (primitive int with reserved values for null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Deephaven int (primitive int with reserved values for null)
-
getBoxedInt
@Nullable public static @Nullable Integer getBoxedInt(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns an Integer from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- An Integer
-
getBoxedInt
Returns an Integer from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- An Integer
-
getShort
public static short getShort(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven short (primitive short with reserved values for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Deephaven short (primitive short with reserved values for Null)
-
getShort
public static short getShort(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven short (primitive short with reserved values for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.- Returns:
- A Deephaven short (primitive short with reserved values for Null)
-
getShort
public static short getShort(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven short (primitive short with reserved values for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Deephaven short (primitive short with reserved values for Null)
-
getBoxedShort
@Nullable public static @Nullable Short getBoxedShort(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Short from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Short
-
getBoxedShort
-
getLong
public static long getLong(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven long (primitive long with reserved values for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Deephaven long (primitive long with reserved values for Null)
-
getLong
public static long getLong(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven long (primitive long with reserved values for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.- Returns:
- A Deephaven long (primitive long with reserved values for Null)
-
getLong
public static long getLong(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven long (primitive long with reserved values for null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Deephaven long (primitive long with reserved values for null)
-
getBoxedLong
@Nullable public static @Nullable Long getBoxedLong(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Long from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Long
-
getBoxedLong
Returns a Long from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Long
-
getDouble
public static double getDouble(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven double (primitive double with reserved values for null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Deephaven double (primitive double with reserved values for null)
-
getDouble
public static double getDouble(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven double (primitive double with reserved values for null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.- Returns:
- A Deephaven double (primitive double with reserved values for null)
-
getDouble
public static double getDouble(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven double (primitive double with reserved values for null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Deephaven double (primitive double with reserved values for null)
-
getBoxedDouble
@Nullable public static @Nullable Double getBoxedDouble(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Double from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Double
-
getBoxedDouble
@Nullable public static @Nullable Double getBoxedDouble(com.fasterxml.jackson.databind.JsonNode node) Returns a Double from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Double
-
getFloat
public static float getFloat(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven float (primitive float with reserved values for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Deephaven float (primitive float with reserved values for Null)
-
getFloat
public static float getFloat(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven float (primitive float with reserved values for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.- Returns:
- A Deephaven float (primitive float with reserved values for Null)
-
getFloat
public static float getFloat(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven float (primitive float with reserved values for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Deephaven float (primitive float with reserved values for Null)
-
getBoxedFloat
@Nullable public static @Nullable Float getBoxedFloat(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Float from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Float
-
getBoxedFloat
Returns a Float from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Float
-
getByte
public static byte getByte(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven byte (primitive byte with a reserved value for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Deephaven byte (primitive byte with a reserved value for Null)
-
getByte
public static byte getByte(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven byte (primitive byte with a reserved value for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.- Returns:
- A Deephaven byte (primitive byte with a reserved value for Null)
-
getByte
public static byte getByte(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven byte (primitive byte with a reserved value for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Deephaven byte (primitive byte with a reserved value for Null)
-
getBoxedByte
@Nullable public static @Nullable Byte getBoxedByte(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Byte from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Byte
-
getBoxedByte
Returns a Byte from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Byte
-
getChar
public static char getChar(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven char (primitive char with a reserved value for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Deephaven char (primitive char with a reserved value for Null)
-
getChar
public static char getChar(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Deephaven char (primitive char with a reserved value for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.- Returns:
- A Deephaven char (primitive char with a reserved value for Null)
-
getChar
public static char getChar(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven char (primitive char with a reserved value for Null) from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Deephaven char (primitive char with a reserved value for Null)
-
getBoxedChar
@Nullable public static @Nullable Character getBoxedChar(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Character from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Character
-
getBoxedChar
@Nullable public static @Nullable Character getBoxedChar(com.fasterxml.jackson.databind.JsonNode node) -
getString
@Nullable public static @Nullable String getString(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a String from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A String
-
getString
@Nullable public static @Nullable String getString(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a String from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.- Returns:
- A String
-
getString
Returns a String from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A String
-
getBoolean
public static Boolean getBoolean(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Boolean from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A Boolean
-
getBoolean
public static Boolean getBoolean(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Boolean from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.- Returns:
- A Boolean
-
getBoolean
Returns a Boolean from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A Boolean
-
getBigInteger
public static BigInteger getBigInteger(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a BigInteger from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A BigInteger
-
getBigInteger
public static BigInteger getBigInteger(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a BigInteger from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.- Returns:
- A BigInteger
-
getBigInteger
@Nullable public static @Nullable BigInteger getBigInteger(com.fasterxml.jackson.databind.JsonNode node) Returns a BigInteger from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A BigInteger
-
getBigDecimal
@Nullable public static @Nullable BigDecimal getBigDecimal(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a BigDecimal from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- A BigDecimal
-
getBigDecimal
@Nullable public static @Nullable BigDecimal getBigDecimal(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a BigDecimal from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.- Returns:
- A BigDecimal
-
getBigDecimal
@Nullable public static @Nullable BigDecimal getBigDecimal(com.fasterxml.jackson.databind.JsonNode node) Returns a BigDecimal from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- A BigDecimal
-
getValue
@Nullable public static @Nullable Object getValue(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a generic Object from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.- Returns:
- An Object
-
getValue
Returns a generic Object from aJsonNode.- Parameters:
node- TheJsonNodefrom which to retrieve the value.- Returns:
- An Object
-
getInstant
@Nullable public static @Nullable Instant getInstant(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns anInstantfrom aJsonNode. Will try to infer precision of a long value to be parsed usingDateTimeUtilsautoEpochToTime. If the value in the JSON record is not numeric, this method will attempt to parse it as a Deephaven Instant string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ).- Parameters:
node- TheJsonNodefrom which to retrieve the value.key- The String key of the value to retrieve.
-
getInstant
@Nullable public static @Nullable Instant getInstant(@NotNull @NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns anInstantfrom aJsonNode. Will try to infer precision of a long value to be parsed usingDateTimeUtilsautoEpochToTime. If the value in the JSON record is not numeric, this method will attempt to parse it as a Deephaven Instant string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ).- Parameters:
node- TheJsonNodefrom which to retrieve the value.ptr- A JsonPointer to the node for the value to retrieve.
-
getInstant
Returns anInstantfrom aJsonNode. Will try to infer precision of a long value to be parsed usingDateTimeUtilsautoEpochToTime. If the value in the JSON record is not numeric, this method will attempt to parse it as a Deephaven Instant string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ).- Parameters:
node- TheJsonNodefrom which to retrieve the value.
-