Package io.deephaven.kafka.ingest
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 TypeMethodDescriptiondefault Object
get
(JsonRecord record, String key) A RecordGetter that will get a value obtained from aJsonRecord
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 aJsonRecord
as indicated in the record by the key.
-
Method Details
-
get
A RecordGetter that will get a value obtained from aJsonRecord
as indicated in the record by the key. The getter will be matched to the type of the column.- Parameters:
record
- TheJsonRecord
from which to get the value.key
- The property name by which to retrieve the value from the record.
-
get
A RecordGetter that will get a value obtained from aJsonRecord
as indicated in the record by the key. The getter will be matched to the type of the column.- Parameters:
node
- TheJsonNode
from which to get the value.
-