Interface JsonRecordGetter<T>

All Known Implementing Classes:
JsonRecordUtil.JsonBigDecimalGetter, JsonRecordUtil.JsonBigIntegerGetter, JsonRecordUtil.JsonBooleanGetter, JsonRecordUtil.JsonByteGetter, JsonRecordUtil.JsonCharGetter, JsonRecordUtil.JsonDateTimeGetter, JsonRecordUtil.JsonDoubleGetter, JsonRecordUtil.JsonFloatGetter, JsonRecordUtil.JsonGetter, JsonRecordUtil.JsonIntGetter, JsonRecordUtil.JsonLongGetter, JsonRecordUtil.JsonShortGetter, JsonRecordUtil.JsonStringGetter

public interface JsonRecordGetter<T>
An interface for retrieving type-aware values from JSON objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Object
    get(JsonRecord record, String key)
    A RecordGetter that will get a value obtained from a JsonRecord as indicated in the record by the key.
    get(io.deephaven.shadow.jackson.com.fasterxml.jackson.databind.JsonNode node)
    A RecordGetter that will get a value obtained from a JsonRecord as indicated in the record by the key.
  • Method Details

    • get

      default Object get(@NotNull JsonRecord record, @NotNull String key)
      A RecordGetter that will get a value obtained from a JsonRecord as indicated in the record by the key. The getter will be matched to the type of the column.
      Parameters:
      record - The JsonRecord from which to get the value.
      key - The property name by which to retrieve the value from the record.
    • get

      Object get(@Nullable io.deephaven.shadow.jackson.com.fasterxml.jackson.databind.JsonNode node)
      A RecordGetter that will get a value obtained from a JsonRecord as indicated in the record by the key. The getter will be matched to the type of the column.
      Parameters:
      node - The JsonNode from which to get the value.