Package io.deephaven.kafka.ingest
Interface JsonRecordSetter
- All Known Implementing Classes:
JsonRecordUtil.JsonBigDecimalSetter
,JsonRecordUtil.JsonBigIntegerSetter
,JsonRecordUtil.JsonBooleanSetter
,JsonRecordUtil.JsonDateTimeSetter
,JsonRecordUtil.JsonDoubleSetter
,JsonRecordUtil.JsonFloatSetter
,JsonRecordUtil.JsonIntSetter
,JsonRecordUtil.JsonLongSetter
,JsonRecordUtil.JsonSetter
,JsonRecordUtil.JsonShortSetter
,JsonRecordUtil.JsonStringSetter
public interface JsonRecordSetter
An interface for RowSetters that obtain their values from JSON objects.
-
Method Summary
Modifier and Type Method Description void
set(JsonRecord record, String key, RowSetter setter)
A RowSetter that will set a value obtained from aJsonRecord
as indicated in the record by the key.
-
Method Details
-
set
A RowSetter that will set a value obtained from aJsonRecord
as indicated in the record by the key. The setter and the value it sets 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.setter
- TheRowSetter
for which the set method will be called.
-