Package io.deephaven.kafka.ingest
Class JsonNodeUtil
java.lang.Object
io.deephaven.kafka.ingest.JsonNodeUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable BigDecimal
getBigDecimal
(@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 BigDecimal
getBigDecimal
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a BigDecimal from aJsonNode
.static @Nullable BigDecimal
getBigDecimal
(com.fasterxml.jackson.databind.JsonNode node) Returns a BigDecimal from aJsonNode
.static BigInteger
getBigInteger
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a BigInteger from aJsonNode
.static BigInteger
getBigInteger
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a BigInteger from aJsonNode
.static @Nullable BigInteger
getBigInteger
(com.fasterxml.jackson.databind.JsonNode node) Returns a BigInteger from aJsonNode
.static Boolean
getBoolean
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns a Boolean from aJsonNode
.static Boolean
getBoolean
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Boolean from aJsonNode
.static @Nullable Boolean
getBoolean
(com.fasterxml.jackson.databind.JsonNode node) Returns a Boolean from aJsonNode
.static @Nullable Byte
getBoxedByte
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Byte from aJsonNode
.static @Nullable Byte
getBoxedByte
(com.fasterxml.jackson.databind.JsonNode node) Returns a Byte from aJsonNode
.static @Nullable Character
getBoxedChar
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Character from aJsonNode
.static @Nullable Character
getBoxedChar
(com.fasterxml.jackson.databind.JsonNode node) static @Nullable Double
getBoxedDouble
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Double from aJsonNode
.static @Nullable Double
getBoxedDouble
(com.fasterxml.jackson.databind.JsonNode node) Returns a Double from aJsonNode
.static @Nullable Float
getBoxedFloat
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Float from aJsonNode
.static @Nullable Float
getBoxedFloat
(com.fasterxml.jackson.databind.JsonNode node) Returns a Float from aJsonNode
.static @Nullable Integer
getBoxedInt
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns an Integer from aJsonNode
.static @Nullable Integer
getBoxedInt
(com.fasterxml.jackson.databind.JsonNode node) Returns an Integer from aJsonNode
.static @Nullable Long
getBoxedLong
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Long from aJsonNode
.static @Nullable Long
getBoxedLong
(com.fasterxml.jackson.databind.JsonNode node) Returns a Long from aJsonNode
.static @Nullable Short
getBoxedShort
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a Short from aJsonNode
.static @Nullable Short
getBoxedShort
(com.fasterxml.jackson.databind.JsonNode node) static byte
getByte
(@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 byte
getByte
(@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 byte
getByte
(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven byte (primitive byte with a reserved value for Null) from aJsonNode
.static char
getChar
(@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 char
getChar
(@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 char
getChar
(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven char (primitive char with a reserved value for Null) from aJsonNode
.static double
getDouble
(@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 double
getDouble
(@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 double
getDouble
(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven double (primitive double with reserved values for null) from aJsonNode
.static float
getFloat
(@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 float
getFloat
(@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 float
getFloat
(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven float (primitive float with reserved values for Null) from aJsonNode
.static @Nullable Instant
getInstant
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull com.fasterxml.jackson.core.JsonPointer ptr, boolean allowMissingKeys, boolean allowNullValues) Returns anInstant
from aJsonNode
.static @Nullable Instant
getInstant
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns anInstant
from aJsonNode
.static @Nullable Instant
getInstant
(com.fasterxml.jackson.databind.JsonNode node) Returns anInstant
from aJsonNode
.static int
getInt
(@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 int
getInt
(@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 int
getInt
(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven int (primitive int with reserved values for null) from aJsonNode
.static long
getLong
(@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 long
getLong
(@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 long
getLong
(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven long (primitive long with reserved values for null) from aJsonNode
.static short
getShort
(@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 short
getShort
(@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 short
getShort
(com.fasterxml.jackson.databind.JsonNode node) Returns a Deephaven short (primitive short with reserved values for Null) from aJsonNode
.static @Nullable String
getString
(@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 String
getString
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a String from aJsonNode
.static @Nullable String
getString
(com.fasterxml.jackson.databind.JsonNode node) Returns a String from aJsonNode
.static @Nullable Object
getValue
(@NotNull com.fasterxml.jackson.databind.JsonNode node, @NotNull String key, boolean allowMissingKeys, boolean allowNullValues) Returns a generic Object from aJsonNode
.static @Nullable Object
getValue
(com.fasterxml.jackson.databind.JsonNode node) Returns a generic Object from aJsonNode
.static com.fasterxml.jackson.databind.JsonNode
makeJsonNode
(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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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
- TheJsonNode
from 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 anInstant
from aJsonNode
. Will try to infer precision of a long value to be parsed usingDateTimeUtils
autoEpochToTime. 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
- TheJsonNode
from 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 anInstant
from aJsonNode
. Will try to infer precision of a long value to be parsed usingDateTimeUtils
autoEpochToTime. 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
- TheJsonNode
from which to retrieve the value.ptr
- A JsonPointer to the node for the value to retrieve.
-
getInstant
Returns anInstant
from aJsonNode
. Will try to infer precision of a long value to be parsed usingDateTimeUtils
autoEpochToTime. 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
- TheJsonNode
from which to retrieve the value.
-